File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
llvm/lib/CodeGen/SelectionDAG Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1769,7 +1769,7 @@ bool FastISel::selectExtractValue(const User *U) {
17691769 Type *AggTy = Op0->getType ();
17701770
17711771 // Get the base result register.
1772- unsigned ResultReg;
1772+ Register ResultReg;
17731773 DenseMap<const Value *, Register>::iterator I = FuncInfo.ValueMap .find (Op0);
17741774 if (I != FuncInfo.ValueMap .end ())
17751775 ResultReg = I->second ;
@@ -1785,7 +1785,8 @@ bool FastISel::selectExtractValue(const User *U) {
17851785 ComputeValueVTs (TLI, DL, AggTy, AggValueVTs);
17861786
17871787 for (unsigned i = 0 ; i < VTIndex; i++)
1788- ResultReg += TLI.getNumRegisters (FuncInfo.Fn ->getContext (), AggValueVTs[i]);
1788+ ResultReg = ResultReg.id () +
1789+ TLI.getNumRegisters (FuncInfo.Fn ->getContext (), AggValueVTs[i]);
17891790
17901791 updateValueMap (EVI, ResultReg);
17911792 return true ;
You can’t perform that action at this time.
0 commit comments