]> granicus.if.org Git - clang/commitdiff
CGLoopInfo: Use the MD_loop metadata kind from r264371, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 25 Mar 2016 00:38:14 +0000 (00:38 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 25 Mar 2016 00:38:14 +0000 (00:38 +0000)
Besides a small compile-time speedup, there should be no real
functionality change here.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@264372 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGLoopInfo.cpp

index f10cfcfa7cb889c2e1f0feaa26b53b61c87186b2..08ed173f33e296518ae5d0aeae78625111b18a41 100644 (file)
@@ -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;