summaryrefslogtreecommitdiff
path: root/source/compiler/asltree.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/compiler/asltree.c')
-rw-r--r--source/compiler/asltree.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/source/compiler/asltree.c b/source/compiler/asltree.c
index 0f31296e8193..b80a42263fc9 100644
--- a/source/compiler/asltree.c
+++ b/source/compiler/asltree.c
@@ -295,17 +295,14 @@ TrAllocateNode (
}
Gbl_CommentState.Latest_Parse_Node = Op;
- if (Gbl_CommentState.Latest_Parse_Node->Asl.ParseOpName)
- {
- CvDbgPrint ("trallocatenode=Set latest parse node to this node.\n");
- CvDbgPrint (" Op->Asl.ParseOpName = %s\n",
- Gbl_CommentState.Latest_Parse_Node->Asl.ParseOpName);
- CvDbgPrint (" Op->Asl.ParseOpcode = 0x%x\n", ParseOpcode);
+ CvDbgPrint ("trallocatenode=Set latest parse node to this node.\n");
+ CvDbgPrint (" Op->Asl.ParseOpName = %s\n",
+ Gbl_CommentState.Latest_Parse_Node->Asl.ParseOpName);
+ CvDbgPrint (" Op->Asl.ParseOpcode = 0x%x\n", ParseOpcode);
- if (Op->Asl.FileChanged)
- {
- CvDbgPrint(" file has been changed!\n");
- }
+ if (Op->Asl.FileChanged)
+ {
+ CvDbgPrint(" file has been changed!\n");
}
/*
@@ -1660,7 +1657,7 @@ TrLinkChildNode (
* turn on capture comments as it signifies that we are done parsing
* a method call.
*/
- if (Gbl_CaptureComments)
+ if (Gbl_CaptureComments && Op1)
{
if (Op1->Asl.ParseOpcode == PARSEOP_METHODCALL)
{