summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2014-12-09 22:02:16 +0000
committerTobias Grosser <tobias@grosser.es>2014-12-09 22:02:16 +0000
commitbd8f3c1f61b4fb880322466bcfa7ba300cee38ab (patch)
treef7c311936ab8f2c8cdc886185ba96aa089070e34
parent986fa5f4eb037877fd470770be0a7ca9ebeac9ca (diff)
downloadbcm5719-llvm-bd8f3c1f61b4fb880322466bcfa7ba300cee38ab.tar.gz
bcm5719-llvm-bd8f3c1f61b4fb880322466bcfa7ba300cee38ab.zip
Unbreak after LLVM's metadata split in r223802
llvm-svn: 223838
-rw-r--r--polly/lib/CodeGen/IRBuilder.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/polly/lib/CodeGen/IRBuilder.cpp b/polly/lib/CodeGen/IRBuilder.cpp
index 22532b58307..cbd162628eb 100644
--- a/polly/lib/CodeGen/IRBuilder.cpp
+++ b/polly/lib/CodeGen/IRBuilder.cpp
@@ -30,10 +30,10 @@ using namespace polly;
/// '!n = metadata !{metadata !n, arg0, arg1}'
///
/// @return The self referencing id metadata node.
-static MDNode *getID(LLVMContext &Ctx, Value *arg0 = nullptr,
- Value *arg1 = nullptr) {
+static MDNode *getID(LLVMContext &Ctx, Metadata *arg0 = nullptr,
+ Metadata *arg1 = nullptr) {
MDNode *ID;
- SmallVector<Value *, 3> Args;
+ SmallVector<Metadata *, 3> Args;
// Use a temporary node to safely create a unique pointer for the first arg.
MDNode *TempNode = MDNode::getTemporary(Ctx, None);
// Reserve operand 0 for loop id self reference.
@@ -78,7 +78,7 @@ void ScopAnnotator::buildAliasScopes(Scop &S) {
if (BasePtr == AliasScopePair.first)
continue;
- Value *Args = {AliasScopePair.second};
+ Metadata *Args = {AliasScopePair.second};
AliasScopeList =
MDNode::concatenate(AliasScopeList, MDNode::get(Ctx, Args));
}
OpenPOWER on IntegriCloud