diff options
author | Vitaly Buka <vitalybuka@google.com> | 2017-05-24 18:11:57 +0000 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2017-05-24 18:11:57 +0000 |
commit | 1887dd899418965aa0e6b7cf510b539c810c83ac (patch) | |
tree | 11c0785e3f89f707d3a2119ae12c5338bcfe85c3 /llvm/unittests/Support/CrashRecoveryTest.cpp | |
parent | 55b169bf5dd84246f9d71ed6cd2b05d65e10d1fc (diff) | |
download | bcm5719-llvm-1887dd899418965aa0e6b7cf510b539c810c83ac.tar.gz bcm5719-llvm-1887dd899418965aa0e6b7cf510b539c810c83ac.zip |
Prevent UBSan report in CrashRecovery tests
Reverted by mistake with r303783.
llvm-svn: 303785
Diffstat (limited to 'llvm/unittests/Support/CrashRecoveryTest.cpp')
-rw-r--r-- | llvm/unittests/Support/CrashRecoveryTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Support/CrashRecoveryTest.cpp b/llvm/unittests/Support/CrashRecoveryTest.cpp index dbb0db57679..e9ffd1f8871 100644 --- a/llvm/unittests/Support/CrashRecoveryTest.cpp +++ b/llvm/unittests/Support/CrashRecoveryTest.cpp @@ -21,7 +21,7 @@ using namespace llvm; using namespace llvm::sys; static int GlobalInt = 0; -static void nullDeref() { *(volatile int *)nullptr = 0; } +static void nullDeref() { *(volatile int *)0x10 = 0; } static void incrementGlobal() { ++GlobalInt; } static void llvmTrap() { LLVM_BUILTIN_TRAP; } |