aboutsummaryrefslogtreecommitdiff
path: root/source/compiler/asltree.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2017-05-31 22:40:24 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2017-05-31 22:40:24 +0000
commitc457a42be4fca72c51fdca569271b62213d01a37 (patch)
tree0ce624183fb74a6ec5d2260e6904585800e8c4d8 /source/compiler/asltree.c
parent65c600c804e5a81af3a34d461312027000738994 (diff)
downloadsrc-c457a42be4fca72c51fdca569271b62213d01a37.tar.gz
src-c457a42be4fca72c51fdca569271b62213d01a37.zip
Import ACPICA 20170531.vendor/acpica/20170531
Notes
Notes: svn path=/vendor-sys/acpica/dist/; revision=319363 svn path=/vendor-sys/acpica/20170531/; revision=319364; tag=vendor/acpica/20170531
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)
{