forked from OSchip/llvm-project
parent
93ca36d756
commit
f7caf3cac8
|
@ -4132,9 +4132,10 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo,
|
||||||
auto scalarAlign = CGM.getDataLayout().getPrefTypeAlignment(scalarType);
|
auto scalarAlign = CGM.getDataLayout().getPrefTypeAlignment(scalarType);
|
||||||
|
|
||||||
// Materialize to a temporary.
|
// Materialize to a temporary.
|
||||||
addr = CreateTempAlloca(RV.getScalarVal()->getType(),
|
addr = CreateTempAlloca(
|
||||||
|
RV.getScalarVal()->getType(),
|
||||||
CharUnits::fromQuantity(std::max(
|
CharUnits::fromQuantity(std::max(
|
||||||
layout->getAlignment(), scalarAlign)),
|
(unsigned)layout->getAlignment().value(), scalarAlign)),
|
||||||
"tmp",
|
"tmp",
|
||||||
/*ArraySize=*/nullptr, &AllocaAddr);
|
/*ArraySize=*/nullptr, &AllocaAddr);
|
||||||
tempSize = EmitLifetimeStart(scalarSize, AllocaAddr.getPointer());
|
tempSize = EmitLifetimeStart(scalarSize, AllocaAddr.getPointer());
|
||||||
|
|
Loading…
Reference in New Issue