summaryrefslogtreecommitdiff
path: root/lib/scudo
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2017-01-17 20:41:04 +0000
committerPetr Hosek <phosek@chromium.org>2017-01-17 20:41:04 +0000
commit1239731393406a4857137301f7c41da0b67e969e (patch)
tree37c2bb0ba94a83c161f37556dfaea82443395c1e /lib/scudo
parent6e3d368ee059a161aeb02b3f6c4a9a7bb08f480b (diff)
downloadcompiler-rt-1239731393406a4857137301f7c41da0b67e969e.tar.gz
[scudo] Eliminate the runtime dependency on libc++abi
Making this variable non-static avoids the need for locking to ensure that the initialization is thread-safe which in turns eliminates the runtime dependency on libc++abi library (for __cxa_guard_acquire and __cxa_guard_release) which makes it possible to link scudo against pure C programs. Differential Revision: https://reviews.llvm.org/D28757 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@292253 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/scudo')
-rw-r--r--lib/scudo/scudo_utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/scudo/scudo_utils.cpp b/lib/scudo/scudo_utils.cpp
index ffa65b219..74144080c 100644
--- a/lib/scudo/scudo_utils.cpp
+++ b/lib/scudo/scudo_utils.cpp
@@ -87,7 +87,7 @@ CPUIDRegs getCPUFeatures() {
bool testCPUFeature(CPUFeature Feature)
{
- static CPUIDRegs FeaturesRegs = getCPUFeatures();
+ CPUIDRegs FeaturesRegs = getCPUFeatures();
switch (Feature) {
case CRC32CPUFeature: // CRC32 is provided by SSE 4.2.