summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Kvochko <kvochko@users.noreply.github.com>2019-01-12 09:22:45 +0300
committerJan Kotas <jkotas@microsoft.com>2019-01-11 22:22:45 -0800
commitc4e4036761771bdc3fad060e6ce70daa5b85fe2a (patch)
treedf9921bbe62db858f2929437d0967393fc6217c0
parent37b9d85941c39cfdce2a2ea877388ab1ab630c68 (diff)
downloadcoreclr-c4e4036761771bdc3fad060e6ce70daa5b85fe2a.tar.gz
coreclr-c4e4036761771bdc3fad060e6ce70daa5b85fe2a.tar.bz2
coreclr-c4e4036761771bdc3fad060e6ce70daa5b85fe2a.zip
Fix x64 CFI generation (#21955)
-rw-r--r--src/jit/unwind.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jit/unwind.cpp b/src/jit/unwind.cpp
index 96278bd9a9..5197a7e28e 100644
--- a/src/jit/unwind.cpp
+++ b/src/jit/unwind.cpp
@@ -149,6 +149,9 @@ void Compiler::unwindPushPopCFI(regNumber reg)
if (relOffsetMask & genRegMask(reg))
{
+#ifndef _TARGET_ARM_
+ createCfiCode(func, cbProlog, CFI_ADJUST_CFA_OFFSET, DWARF_REG_ILLEGAL, REGSIZE_BYTES);
+#endif
createCfiCode(func, cbProlog, CFI_REL_OFFSET, mapRegNumToDwarfReg(reg));
}
else