@@ -110,7 +110,7 @@ struct ARMOutgoingValueHandler : public CallLowering::OutgoingValueHandler {
110
110
}
111
111
112
112
void assignValueToReg (Register ValVReg, Register PhysReg,
113
- CCValAssign VA) override {
113
+ const CCValAssign & VA) override {
114
114
assert (VA.isRegLoc () && " Value shouldn't be assigned to reg" );
115
115
assert (VA.getLocReg () == PhysReg && " Assigning to the wrong reg?" );
116
116
@@ -136,14 +136,14 @@ struct ARMOutgoingValueHandler : public CallLowering::OutgoingValueHandler {
136
136
std::function<void ()> *Thunk) override {
137
137
assert (Arg.Regs .size () == 1 && " Can't handle multple regs yet" );
138
138
139
- CCValAssign VA = VAs[0 ];
139
+ const CCValAssign & VA = VAs[0 ];
140
140
assert (VA.needsCustom () && " Value doesn't need custom handling" );
141
141
142
142
// Custom lowering for other types, such as f16, is currently not supported
143
143
if (VA.getValVT () != MVT::f64)
144
144
return 0 ;
145
145
146
- CCValAssign NextVA = VAs[1 ];
146
+ const CCValAssign & NextVA = VAs[1 ];
147
147
assert (NextVA.needsCustom () && " Value doesn't need custom handling" );
148
148
assert (NextVA.getValVT () == MVT::f64 && " Unsupported type" );
149
149
@@ -283,7 +283,7 @@ struct ARMIncomingValueHandler : public CallLowering::IncomingValueHandler {
283
283
}
284
284
285
285
void assignValueToReg (Register ValVReg, Register PhysReg,
286
- CCValAssign VA) override {
286
+ const CCValAssign & VA) override {
287
287
assert (VA.isRegLoc () && " Value shouldn't be assigned to reg" );
288
288
assert (VA.getLocReg () == PhysReg && " Assigning to the wrong reg?" );
289
289
@@ -312,14 +312,14 @@ struct ARMIncomingValueHandler : public CallLowering::IncomingValueHandler {
312
312
std::function<void ()> *Thunk) override {
313
313
assert (Arg.Regs .size () == 1 && " Can't handle multple regs yet" );
314
314
315
- CCValAssign VA = VAs[0 ];
315
+ const CCValAssign & VA = VAs[0 ];
316
316
assert (VA.needsCustom () && " Value doesn't need custom handling" );
317
317
318
318
// Custom lowering for other types, such as f16, is currently not supported
319
319
if (VA.getValVT () != MVT::f64)
320
320
return 0 ;
321
321
322
- CCValAssign NextVA = VAs[1 ];
322
+ const CCValAssign & NextVA = VAs[1 ];
323
323
assert (NextVA.needsCustom () && " Value doesn't need custom handling" );
324
324
assert (NextVA.getValVT () == MVT::f64 && " Unsupported type" );
325
325
0 commit comments