summaryrefslogtreecommitdiffstats
path: root/third_party/tcmalloc/chromium/src/base/abort.h
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/tcmalloc/chromium/src/base/abort.h')
-rw-r--r--third_party/tcmalloc/chromium/src/base/abort.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/tcmalloc/chromium/src/base/abort.h b/third_party/tcmalloc/chromium/src/base/abort.h
index ce3136e..11bb967 100644
--- a/third_party/tcmalloc/chromium/src/base/abort.h
+++ b/third_party/tcmalloc/chromium/src/base/abort.h
@@ -25,7 +25,7 @@ inline void Abort() {
namespace tcmalloc {
inline void Abort() {
// Make a segmentation fault to force abort.
- *reinterpret_cast<int*>(NULL) = 0x2001;
+ *reinterpret_cast<volatile int*>(NULL) = 0x2001;
}
} // namespace tcmalloc