File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
llvm/lib/Transforms/Utils Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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))
You can’t perform that action at this time.
0 commit comments