summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenAction.cpp
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2014-12-25 10:32:25 +0000
committerDmitry Vyukov <dvyukov@google.com>2014-12-25 10:32:25 +0000
commitbda655004e93bce7c8d60a62f754e0ec6494cf1e (patch)
tree8f68ab5bd0d98c6c3c899708e9178732c4d1d5fb /clang/lib/CodeGen/CodeGenAction.cpp
parent25b383ac663e0406164cd951958a22e8ddfc13c1 (diff)
downloadbcm5719-llvm-bda655004e93bce7c8d60a62f754e0ec6494cf1e.tar.gz
bcm5719-llvm-bda655004e93bce7c8d60a62f754e0ec6494cf1e.zip
tsan: fix trace initialization during thread id reuse
The current code leaves the first event in the trace part uninitialized (from the previous thread). It can cause unpredictable behavior during stack/mutexset restoration. Initialize the first event to a fake harmless memory access. llvm-svn: 224834
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud