Skip to content

Commit b635d6e

Browse files
committed
Post-merge fix
1 parent 5539e7b commit b635d6e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Transforms/Utils/CodeExtractor.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1788,19 +1788,19 @@ CallInst *CodeExtractor::emitReplacerCall(
17881788
ReloadOutputs.push_back(alloca);
17891789
}
17901790

1791-
AllocaInst *Struct = nullptr;
1791+
Instruction *Struct = nullptr;
17921792
if (!StructValues.empty()) {
17931793
Struct = new AllocaInst(StructArgTy, DL.getAllocaAddrSpace(), nullptr,
17941794
"structArg", AllocaBlock->getFirstInsertionPt());
17951795
if (ArgsInZeroAddressSpace && DL.getAllocaAddrSpace() != 0) {
17961796
auto *StructSpaceCast = new AddrSpaceCastInst(
17971797
Struct, PointerType ::get(Context, 0), "structArg.ascast");
17981798
StructSpaceCast->insertAfter(Struct);
1799-
params.push_back(StructSpaceCast);
1800-
} else {
1801-
params.push_back(Struct);
1799+
Struct = StructSpaceCast;
18021800
}
18031801

1802+
params.push_back(Struct);
1803+
18041804
unsigned AggIdx = 0;
18051805
for (Value *input : inputs) {
18061806
if (!StructValues.contains(input))

0 commit comments

Comments
 (0)