summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-03-25 00:38:14 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-03-25 00:38:14 +0000
commitf72d5b608dacc1d4184d848cde3d8ca480df43cc (patch)
treea90a0b3a1fd840a5850adbeeba8373ba22cf9003
parent1d15a9f0c976a4c13d38010da2b4f3a9f97450bf (diff)
downloadbcm5719-llvm-f72d5b608dacc1d4184d848cde3d8ca480df43cc.tar.gz
bcm5719-llvm-f72d5b608dacc1d4184d848cde3d8ca480df43cc.zip
CGLoopInfo: Use the MD_loop metadata kind from r264371, NFC
Besides a small compile-time speedup, there should be no real functionality change here. llvm-svn: 264372
-rw-r--r--clang/lib/CodeGen/CGLoopInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGLoopInfo.cpp b/clang/lib/CodeGen/CGLoopInfo.cpp
index f10cfcfa7cb..08ed173f33e 100644
--- a/clang/lib/CodeGen/CGLoopInfo.cpp
+++ b/clang/lib/CodeGen/CGLoopInfo.cpp
@@ -258,7 +258,7 @@ void LoopInfoStack::InsertHelper(Instruction *I) const {
if (TerminatorInst *TI = dyn_cast<TerminatorInst>(I)) {
for (unsigned i = 0, ie = TI->getNumSuccessors(); i < ie; ++i)
if (TI->getSuccessor(i) == L.getHeader()) {
- TI->setMetadata("llvm.loop", L.getLoopID());
+ TI->setMetadata(llvm::LLVMContext::MD_loop, L.getLoopID());
break;
}
return;
OpenPOWER on IntegriCloud