diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-11-01 00:10:31 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-11-01 00:10:31 +0000 |
commit | 3872d0084c4f479020ce01b4db5d1bd414c57fb8 (patch) | |
tree | fd1a9e83666fa84a3916b46a94cca32978b34794 /llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp | |
parent | 7c4fc4e5ae4c8145974397da295587e77c770f62 (diff) | |
download | llvm-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.cpp | 2 |
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; } |