aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-11-01 00:10:31 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-11-01 00:10:31 +0000
commit3872d0084c4f479020ce01b4db5d1bd414c57fb8 (patch)
treefd1a9e83666fa84a3916b46a94cca32978b34794 /llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp
parent7c4fc4e5ae4c8145974397da295587e77c770f62 (diff)
downloadllvm-3872d0084c4f479020ce01b4db5d1bd414c57fb8.zip
llvm-3872d0084c4f479020ce01b4db5d1bd414c57fb8.tar.gz
llvm-3872d0084c4f479020ce01b4db5d1bd414c57fb8.tar.bz2
IR: MDNode => Value: Instruction::getMetadata()
Change `Instruction::getMetadata()` to return `Value` as part of PR21433. Update most callers to use `Instruction::getMDNode()`, which wraps the result in a `cast_or_null<MDNode>`. llvm-svn: 221024
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 417f2a1..4536510 100644
--- a/llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp
@@ -231,7 +231,7 @@ bool ThreadSanitizer::doInitialization(Module &M) {
}
static bool isVtableAccess(Instruction *I) {
- if (MDNode *Tag = I->getMetadata(LLVMContext::MD_tbaa))
+ if (MDNode *Tag = I->getMDNode(LLVMContext::MD_tbaa))
return Tag->isTBAAVtableAccess();
return false;
}