Fix windows build
authorAndrey Kvochko <a.kvochko@samsung.com>
Tue, 25 Dec 2018 10:32:59 +0000 (13:32 +0300)
committerAndrey Kvochko <a.kvochko@samsung.com>
Tue, 25 Dec 2018 10:32:59 +0000 (13:32 +0300)
Commit migrated from https://github.com/dotnet/coreclr/commit/44148502127d299c6a14def752b05012e8470d6f

src/coreclr/src/jit/unwind.cpp

index 86ce331..96278bd 100644 (file)
@@ -398,8 +398,12 @@ UNATIVE_OFFSET Compiler::unwindGetCurrentOffset(FuncInfoDsc* func)
     }
     else
     {
+#if defined(_TARGET_AMD64_) || (defined(_TARGET_UNIX_) && (defined(_TARGET_ARMARCH_) || defined(_TARGET_X86_)))
         assert(func->startLoc != nullptr);
         offset = func->startLoc->GetFuncletPrologOffset(genEmitter);
+#else
+        offset = 0; // TODO ???
+#endif
     }
 
     return offset;