]> git.proxmox.com Git - rustc.git/blobdiff - src/llvm/lib/Analysis/LoopInfo.cpp
Imported Upstream version 1.0.0-alpha.2
[rustc.git] / src / llvm / lib / Analysis / LoopInfo.cpp
index 46c0eaabe1a3102e59ecc1b18f430800944b7dd4..b1f62c437326ab071ee29ab3e82cbb73f1e5d501 100644 (file)
@@ -24,6 +24,7 @@
 #include "llvm/IR/Constants.h"
 #include "llvm/IR/Dominators.h"
 #include "llvm/IR/Instructions.h"
+#include "llvm/IR/LLVMContext.h"
 #include "llvm/IR/Metadata.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/Debug.h"
@@ -307,7 +308,8 @@ bool Loop::isAnnotatedParallel() const {
       // directly or indirectly through another list metadata (in case of
       // nested parallel loops). The loop identifier metadata refers to
       // itself so we can check both cases with the same routine.
-      MDNode *loopIdMD = II->getMetadata("llvm.mem.parallel_loop_access");
+      MDNode *loopIdMD =
+          II->getMetadata(LLVMContext::MD_mem_parallel_loop_access);
 
       if (!loopIdMD)
         return false;