mirror of
https://github.com/acpica/acpica/
synced 2025-02-02 06:35:34 +03:00
Handle parse errors during Switch() generation
This commit is contained in:
parent
c48c3a0657
commit
9a1e9cbdf8
@ -2,7 +2,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: asltransform - Parse tree transforms
|
||||
* $Revision: 1.40 $
|
||||
* $Revision: 1.41 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -724,7 +724,8 @@ TrDoSwitch (
|
||||
/* Find the parent method */
|
||||
|
||||
Next = StartNode;
|
||||
while (Next->Asl.ParseOpcode != PARSEOP_METHOD)
|
||||
while ((Next->Asl.ParseOpcode != PARSEOP_METHOD) &&
|
||||
(Next->Asl.ParseOpcode != PARSEOP_DEFINITIONBLOCK))
|
||||
{
|
||||
Next = Next->Asl.Parent;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user