[llvm] r213414 - Fix build breakage introduced with r213412.
Mark Heffernan
meheff at google.com
Fri Jul 18 14:29:41 PDT 2014
Author: meheff
Date: Fri Jul 18 16:29:41 2014
New Revision: 213414
URL: http://llvm.org/viewvc/llvm-project?rev=213414&view=rev
Log:
Fix build breakage introduced with r213412.
Modified:
llvm/trunk/lib/Transforms/Scalar/LoopUnrollPass.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/LoopUnrollPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopUnrollPass.cpp?rev=213414&r1=213413&r2=213414&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopUnrollPass.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopUnrollPass.cpp Fri Jul 18 16:29:41 2014
@@ -298,9 +298,10 @@ static void SetLoopAlreadyUnrolled(Loop
// Add unroll(disable) metadata to disable future unrolling.
LLVMContext &Context = L->getHeader()->getContext();
- MDNode *DisableNode =
- MDNode::get(Context, {MDString::get(Context, "llvm.loop.unroll.enable"),
- ConstantInt::get(Type::getInt1Ty(Context), 0)});
+ SmallVector<Value *, 2> DisableOperands;
+ DisableOperands.push_back(MDString::get(Context, "llvm.loop.unroll.enable"));
+ DisableOperands.push_back(ConstantInt::get(Type::getInt1Ty(Context), 0));
+ MDNode *DisableNode = MDNode::get(Context, DisableOperands);
Vals.push_back(DisableNode);
MDNode *NewLoopID = MDNode::get(Context, Vals);
More information about the llvm-commits
mailing list