summaryrefslogtreecommitdiffstats
path: root/compiler/aslerror.c
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/aslerror.c')
-rw-r--r--compiler/aslerror.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/aslerror.c b/compiler/aslerror.c
index 4b9a04f..ff24e62 100644
--- a/compiler/aslerror.c
+++ b/compiler/aslerror.c
@@ -280,7 +280,14 @@ AePrintException (
/* Get the file handles */
OutputFile = Gbl_Files[FileId].Handle;
+
+ /* Use the merged header/source file if present, otherwise use input file */
+
SourceFile = Gbl_Files[ASL_FILE_SOURCE_OUTPUT].Handle;
+ if (!SourceFile)
+ {
+ SourceFile = Gbl_Files[ASL_FILE_INPUT].Handle;
+ }
if (Header)
{
OpenPOWER on IntegriCloud