Disable PSPSym in filter prolog for CoreRT (#22184)
authorAndrey Kvochko <kvochko@users.noreply.github.com>
Thu, 24 Jan 2019 16:09:34 +0000 (19:09 +0300)
committerJan Kotas <jkotas@microsoft.com>
Thu, 24 Jan 2019 16:09:34 +0000 (08:09 -0800)
src/jit/codegencommon.cpp

index 6c32fc6..b96054a 100644 (file)
@@ -8940,6 +8940,12 @@ void CodeGen::genFuncletProlog(BasicBlock* block)
     // This is the end of the OS-reported prolog for purposes of unwinding
     compiler->unwindEndProlog();
 
+    // If there is no PSPSym (CoreRT ABI), we are done.
+    if (compiler->lvaPSPSym == BAD_VAR_NUM)
+    {
+        return;
+    }
+
     if (isFilter)
     {
         // This is the first block of a filter