Handle parse errors during Switch() generation

This commit is contained in:
rmoore1 2006-09-26 17:16:03 +00:00
parent c48c3a0657
commit 9a1e9cbdf8

View File

@ -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;
}