mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Use getClassB for load and store; we don't want to abort when we
try to load or store through a bool*. llvm-svn: 7195
This commit is contained in:
parent
026c333f07
commit
638e6ef31c
@ -1433,7 +1433,7 @@ void ISel::visitLoadInst(LoadInst &I) {
|
|||||||
unsigned SrcAddrReg = getReg(I.getOperand(0));
|
unsigned SrcAddrReg = getReg(I.getOperand(0));
|
||||||
unsigned DestReg = getReg(I);
|
unsigned DestReg = getReg(I);
|
||||||
|
|
||||||
unsigned Class = getClass(I.getType());
|
unsigned Class = getClassB(I.getType());
|
||||||
switch (Class) {
|
switch (Class) {
|
||||||
case cFP: {
|
case cFP: {
|
||||||
MachineBasicBlock::iterator MBBI = BB->end();
|
MachineBasicBlock::iterator MBBI = BB->end();
|
||||||
@ -1533,7 +1533,7 @@ void ISel::visitStoreInst(StoreInst &I) {
|
|||||||
unsigned ValReg = getReg(I.getOperand(0));
|
unsigned ValReg = getReg(I.getOperand(0));
|
||||||
unsigned AddressReg = getReg(I.getOperand(1));
|
unsigned AddressReg = getReg(I.getOperand(1));
|
||||||
|
|
||||||
unsigned Class = getClass(I.getOperand(0)->getType());
|
unsigned Class = getClassB(I.getOperand(0)->getType());
|
||||||
switch (Class) {
|
switch (Class) {
|
||||||
case cLong:
|
case cLong:
|
||||||
if (isLittleEndian) {
|
if (isLittleEndian) {
|
||||||
|
Loading…
Reference in New Issue
Block a user