aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis/LoopInfo.cpp
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2014-12-04 20:05:14 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-12-04 20:05:14 +0000
commit591bcffe8fa3b416fbb39cbf397bfbd2aa693228 (patch)
tree8d32ff2094b47e15a8def30d62fd7dee6e009de3 /lib/Analysis/LoopInfo.cpp
parent7e6f824dbb10004cdb7ba6942022ea72c0ca6db6 (diff)
parenta21bbdfad461e957fa42ac9d6860ddc9de2da3e9 (diff)
downloadexternal_llvm-591bcffe8fa3b416fbb39cbf397bfbd2aa693228.zip
external_llvm-591bcffe8fa3b416fbb39cbf397bfbd2aa693228.tar.gz
external_llvm-591bcffe8fa3b416fbb39cbf397bfbd2aa693228.tar.bz2
am a21bbdfa: am 876d6995: Merge "Update aosp/master LLVM for rebase to r222494."
* commit 'a21bbdfad461e957fa42ac9d6860ddc9de2da3e9': Update aosp/master LLVM for rebase to r222494.
Diffstat (limited to 'lib/Analysis/LoopInfo.cpp')
-rw-r--r--lib/Analysis/LoopInfo.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Analysis/LoopInfo.cpp b/lib/Analysis/LoopInfo.cpp
index 46c0eaa..b1f62c4 100644
--- a/lib/Analysis/LoopInfo.cpp
+++ b/lib/Analysis/LoopInfo.cpp
@@ -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;