Fix build breakage introduced with r213412.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213414 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Mark Heffernan 2014-07-18 21:29:41 +00:00
parent 354f2afffd
commit 5fcb6fd985

View File

@ -298,9 +298,10 @@ static void SetLoopAlreadyUnrolled(Loop *L) {
// 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);