Skip to content

Commit 4fcab8a

Browse files
authored
[SandboxIR][Region][NFC] Fix windows build issue (#129082)
This should fix the issue reported here: https://discourse.llvm.org/t/second-stage-of-build-on-windows-fails-in-sandboxir/84841
1 parent 3989b78 commit 4fcab8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/SandboxIR/Region.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void Region::setAux(ArrayRef<Instruction *> Aux) {
6464
auto &LLVMCtx = Ctx.LLVMCtx;
6565
for (auto [Idx, I] : enumerate(Aux)) {
6666
llvm::ConstantInt *IdxC =
67-
llvm::ConstantInt::get(LLVMCtx, llvm::APInt(32, Idx, false));
67+
llvm::ConstantInt::get(llvm::Type::getInt32Ty(LLVMCtx), Idx, false);
6868
assert(cast<llvm::Instruction>(I->Val)->getMetadata(AuxMDKind) == nullptr &&
6969
"Instruction already in Aux!");
7070
cast<llvm::Instruction>(I->Val)->setMetadata(

0 commit comments

Comments
 (0)