summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorPiotr Padlewski <prazek@google.com>2015-09-17 20:25:07 +0000
committerPiotr Padlewski <prazek@google.com>2015-09-17 20:25:07 +0000
commitea09288ee7728917283573b206fae53e6a3347e8 (patch)
tree440874fe98e5282014feba8b22557bfbe9542c14 /llvm/lib/CodeGen
parent4ea96421d151e5fab48b10122d54b73cee75400b (diff)
downloadbcm5719-llvm-ea09288ee7728917283573b206fae53e6a3347e8.tar.gz
bcm5719-llvm-ea09288ee7728917283573b206fae53e6a3347e8.zip
Added MD_invariant_group to LLVMContext
http://reviews.llvm.org/D12926 llvm-svn: 247931
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/CodeGenPrepare.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index d0c8fb95d48..8faa35b17ef 100644
--- a/llvm/lib/CodeGen/CodeGenPrepare.cpp
+++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp
@@ -4836,6 +4836,6 @@ bool CodeGenPrepare::splitBranchCondition(Function &F) {
}
void CodeGenPrepare::stripInvariantGroupMetadata(Instruction &I) {
- if (auto *InvariantMD = I.getMetadata("invariant.group"))
+ if (auto *InvariantMD = I.getMetadata(LLVMContext::MD_invariant_group))
I.dropUnknownNonDebugMetadata(InvariantMD->getMetadataID());
}
OpenPOWER on IntegriCloud