mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-09 10:31:14 +00:00
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:
parent
354f2afffd
commit
5fcb6fd985
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user