summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2003-07-17 21:30:06 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2003-07-17 21:30:06 +0000
commitbfedb912cd35704fcd39411d886bbfaefa3faa15 (patch)
tree9b87649830e7d287438b91b66c27dff3f7312f4b /lib
parent1d2ba44224de68a6e473573c9bfaaad3766faae7 (diff)
downloadllvm-bfedb912cd35704fcd39411d886bbfaefa3faa15.tar.gz
llvm-bfedb912cd35704fcd39411d886bbfaefa3faa15.tar.bz2
llvm-bfedb912cd35704fcd39411d886bbfaefa3faa15.tar.xz
Use getClassB for load and store; we don't want to abort when we
try to load or store through a bool*. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7195 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/X86/InstSelectSimple.cpp4
-rw-r--r--lib/Target/X86/X86ISelSimple.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/X86/InstSelectSimple.cpp b/lib/Target/X86/InstSelectSimple.cpp
index b2e11ba9ca..9474942d2a 100644
--- a/lib/Target/X86/InstSelectSimple.cpp
+++ b/lib/Target/X86/InstSelectSimple.cpp
@@ -1433,7 +1433,7 @@ void ISel::visitLoadInst(LoadInst &I) {
unsigned SrcAddrReg = getReg(I.getOperand(0));
unsigned DestReg = getReg(I);
- unsigned Class = getClass(I.getType());
+ unsigned Class = getClassB(I.getType());
switch (Class) {
case cFP: {
MachineBasicBlock::iterator MBBI = BB->end();
@@ -1533,7 +1533,7 @@ void ISel::visitStoreInst(StoreInst &I) {
unsigned ValReg = getReg(I.getOperand(0));
unsigned AddressReg = getReg(I.getOperand(1));
- unsigned Class = getClass(I.getOperand(0)->getType());
+ unsigned Class = getClassB(I.getOperand(0)->getType());
switch (Class) {
case cLong:
if (isLittleEndian) {
diff --git a/lib/Target/X86/X86ISelSimple.cpp b/lib/Target/X86/X86ISelSimple.cpp
index b2e11ba9ca..9474942d2a 100644
--- a/lib/Target/X86/X86ISelSimple.cpp
+++ b/lib/Target/X86/X86ISelSimple.cpp
@@ -1433,7 +1433,7 @@ void ISel::visitLoadInst(LoadInst &I) {
unsigned SrcAddrReg = getReg(I.getOperand(0));
unsigned DestReg = getReg(I);
- unsigned Class = getClass(I.getType());
+ unsigned Class = getClassB(I.getType());
switch (Class) {
case cFP: {
MachineBasicBlock::iterator MBBI = BB->end();
@@ -1533,7 +1533,7 @@ void ISel::visitStoreInst(StoreInst &I) {
unsigned ValReg = getReg(I.getOperand(0));
unsigned AddressReg = getReg(I.getOperand(1));
- unsigned Class = getClass(I.getOperand(0)->getType());
+ unsigned Class = getClassB(I.getOperand(0)->getType());
switch (Class) {
case cLong:
if (isLittleEndian) {