summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2016-04-07 10:10:09 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2016-04-07 10:10:09 +0000
commit4fb78518f1f64e4e2bb853647788164ecaeac1e7 (patch)
tree9be0ea026ab0cd8b425cfd2a288d51d6de0c0640 /llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp
parent0d66a85421d8c42b06c50db9ed2be9cd8605f50a (diff)
downloadbcm5719-llvm-4fb78518f1f64e4e2bb853647788164ecaeac1e7.tar.gz
bcm5719-llvm-4fb78518f1f64e4e2bb853647788164ecaeac1e7.zip
Make helper functions static. NFC.
llvm-svn: 265653
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp
index dad42a81068..48bf1c3eeb8 100644
--- a/llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp
@@ -246,7 +246,7 @@ static bool isVtableAccess(Instruction *I) {
// Do not instrument known races/"benign races" that come from compiler
// instrumentatin. The user has no way of suppressing them.
-bool shouldInstrumentReadWriteFromAddress(Value *Addr) {
+static bool shouldInstrumentReadWriteFromAddress(Value *Addr) {
// Peel off GEPs and BitCasts.
Addr = Addr->stripInBoundsOffsets();
OpenPOWER on IntegriCloud