[x86/Linux] Port two preconditions in ExceptionTracker::ResetThreadAbortStatus (dotne...
authorJonghyun Park <parjong@gmail.com>
Tue, 24 Jan 2017 06:52:45 +0000 (15:52 +0900)
committerJan Kotas <jkotas@microsoft.com>
Tue, 24 Jan 2017 06:52:45 +0000 (22:52 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/97e702041f003a856555b8b809771920a74f0776

src/coreclr/src/vm/exceptionhandling.cpp

index fa6c682..5fe8a26 100644 (file)
@@ -7028,8 +7028,10 @@ void ExceptionTracker::ResetThreadAbortStatus(PTR_Thread pThread, CrawlFrame *pC
         GC_NOTRIGGER;
         MODE_ANY;
         PRECONDITION(pThread != NULL);
-        WIN64_ONLY(PRECONDITION(pCf != NULL);)
-        WIN64_ONLY(PRECONDITION(!sfCurrentStackFrame.IsNull());)
+#ifdef WIN64EXCEPTIONS
+        PRECONDITION(pCf != NULL);
+        PRECONDITION(!sfCurrentStackFrame.IsNull());
+#endif // WIN64EXCEPTIONS
     }
     CONTRACTL_END;