From db5a932c4d15feae39c126532e2bb540a95a710a Mon Sep 17 00:00:00 2001
From: clc5q <clc5q@git.zephyr-software.com>
Date: Fri, 7 Aug 2015 03:21:57 +0000
Subject: [PATCH] Build RTL for AMD syscall opcode.

Former-commit-id: 3f76b4e865add3b0bbbbabfc7601442d8fd74ee2
---
 src/base/SMPFunction.cpp | 2 +-
 src/base/SMPInstr.cpp    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/base/SMPFunction.cpp b/src/base/SMPFunction.cpp
index 50d24a8c..07e5c4d9 100644
--- a/src/base/SMPFunction.cpp
+++ b/src/base/SMPFunction.cpp
@@ -3536,7 +3536,7 @@ void SMPFunction::EmitStackFrameAnnotations(FILE *AnnotFile, SMPInstr *Instr) {
 					ParentReferentID = global_STARS_program->GetDataReferentID();
 					global_STARS_program->IncrementDataReferentID();
 					if (this->GetLocalVarsSize() != (CurrentRegionBytes + this->OutgoingArgsSize)) {
-						SMP_msg("ERROR: LocalVarsSize: %lu not sum of CurrentRegionBytes: %u  and OutArgsSize: %zu at %llu\n",
+						SMP_msg("ERROR: LocalVarsSize: %lu not sum of CurrentRegionBytes: %u  and OutArgsSize: %zu at %llx\n",
 							this->GetLocalVarsSize(), CurrentRegionBytes, this->OutgoingArgsSize, (unsigned long long) addr);
 					}
 					SMP_fprintf(AnnotFile, "%18llx %6u DATAREF STACK %lu esp + 0 PARENT LocalFrame LOCALFRAME\n",
diff --git a/src/base/SMPInstr.cpp b/src/base/SMPInstr.cpp
index e6400f7b..f43f89c7 100644
--- a/src/base/SMPInstr.cpp
+++ b/src/base/SMPInstr.cpp
@@ -15097,7 +15097,7 @@ bool SMPInstr::BuildCallRTL(void) {
 	else {
 		this->RTL.push_back(TempRT);
 	}
-	return SourceFound;
+	return (SourceFound || ParameterlessCall);
 } // end of SMPInstr::BuildCallRTL()
 
 // Build the RTL for a return instruction, with or without extra bytes popped off stack
-- 
GitLab