forked from OSchip/llvm-project
parent
c570061064
commit
52226f9a8e
|
@ -32,8 +32,9 @@ using namespace llvm;
|
||||||
static bool allocateStack(unsigned ValNo, MVT ValVT, MVT LocVT,
|
static bool allocateStack(unsigned ValNo, MVT ValVT, MVT LocVT,
|
||||||
CCValAssign::LocInfo LocInfo,
|
CCValAssign::LocInfo LocInfo,
|
||||||
ISD::ArgFlagsTy ArgFlags, CCState &State) {
|
ISD::ArgFlagsTy ArgFlags, CCState &State) {
|
||||||
unsigned Offset = State.AllocateStack(ValVT.getSizeInBits() / 8, ArgFlags.getOrigAlign());
|
unsigned Offset = State.AllocateStack(ValVT.getStoreSize(),
|
||||||
State.addLoc(CCValAssign::getMem(ValNo, ValVT, Offset, LocVT, LocInfo));
|
ArgFlags.getOrigAlign());
|
||||||
|
State.addLoc(CCValAssign::getMem(ValNo, ValVT, Offset, LocVT, LocInfo));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue