[compiler-rt] r277898 - Try to fix the ill.cc test on Linux

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 5 17:57:58 PDT 2016


Author: rnk
Date: Fri Aug  5 19:57:58 2016
New Revision: 277898

URL: http://llvm.org/viewvc/llvm-project?rev=277898&view=rev
Log:
Try to fix the ill.cc test on Linux

Modified:
    compiler-rt/trunk/test/asan/TestCases/ill.cc

Modified: compiler-rt/trunk/test/asan/TestCases/ill.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/ill.cc?rev=277898&r1=277897&r2=277898&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/ill.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/ill.cc Fri Aug  5 19:57:58 2016
@@ -24,7 +24,9 @@ int main(int argc, char **argv) {
   if (argc)
     __builtin_trap();
   // Unreachable code to avoid confusing the Windows unwinder.
+#ifdef _WIN32
   SetErrorMode(0);
+#endif
 }
 // CHECK0-NOT: ERROR: AddressSanitizer
 // CHECK1: ERROR: AddressSanitizer: {{ILL|illegal-instruction}} on unknown address {{0x0*}}




More information about the llvm-commits mailing list