[polly] r223838 - Unbreak after LLVM's metadata split in r223802

Duncan P. N. Exon Smith dexonsmith at apple.com
Tue Dec 9 21:14:31 PST 2014


Thanks!  Sorry for the breakage.

> On 2014 Dec 9, at 14:02, Tobias Grosser <tobias at grosser.es> wrote:
> 
> Author: grosser
> Date: Tue Dec  9 16:02:16 2014
> New Revision: 223838
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=223838&view=rev
> Log:
> Unbreak after LLVM's metadata split in r223802
> 
> Modified:
>    polly/trunk/lib/CodeGen/IRBuilder.cpp
> 
> Modified: polly/trunk/lib/CodeGen/IRBuilder.cpp
> URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/IRBuilder.cpp?rev=223838&r1=223837&r2=223838&view=diff
> ==============================================================================
> --- polly/trunk/lib/CodeGen/IRBuilder.cpp (original)
> +++ polly/trunk/lib/CodeGen/IRBuilder.cpp Tue Dec  9 16:02:16 2014
> @@ -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(Sco
>       if (BasePtr == AliasScopePair.first)
>         continue;
> 
> -      Value *Args = {AliasScopePair.second};
> +      Metadata *Args = {AliasScopePair.second};
>       AliasScopeList =
>           MDNode::concatenate(AliasScopeList, MDNode::get(Ctx, Args));
>     }
> 
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits





More information about the llvm-commits mailing list