We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3989b78 commit 4fcab8aCopy full SHA for 4fcab8a
llvm/lib/SandboxIR/Region.cpp
@@ -64,7 +64,7 @@ void Region::setAux(ArrayRef<Instruction *> Aux) {
64
auto &LLVMCtx = Ctx.LLVMCtx;
65
for (auto [Idx, I] : enumerate(Aux)) {
66
llvm::ConstantInt *IdxC =
67
- llvm::ConstantInt::get(LLVMCtx, llvm::APInt(32, Idx, false));
+ llvm::ConstantInt::get(llvm::Type::getInt32Ty(LLVMCtx), Idx, false);
68
assert(cast<llvm::Instruction>(I->Val)->getMetadata(AuxMDKind) == nullptr &&
69
"Instruction already in Aux!");
70
cast<llvm::Instruction>(I->Val)->setMetadata(
0 commit comments