Fix assertion failure when calling or returning from a function which

returns 'bool' type.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16884 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Brian Gaeke 2004-10-10 20:34:17 +00:00
parent 85c08351ce
commit 299b39d356
2 changed files with 4 additions and 4 deletions

View File

@ -798,7 +798,7 @@ void V8ISel::visitCallInst(CallInst &I) {
if (I.getType () == Type::VoidTy)
return;
unsigned DestReg = getReg (I);
switch (getClass (I.getType ())) {
switch (getClassB (I.getType ())) {
case cByte:
case cShort:
case cInt:
@ -823,7 +823,7 @@ void V8ISel::visitCallInst(CallInst &I) {
void V8ISel::visitReturnInst(ReturnInst &I) {
if (I.getNumOperands () == 1) {
unsigned RetValReg = getReg (I.getOperand (0));
switch (getClass (I.getOperand (0)->getType ())) {
switch (getClassB (I.getOperand (0)->getType ())) {
case cByte:
case cShort:
case cInt:

View File

@ -798,7 +798,7 @@ void V8ISel::visitCallInst(CallInst &I) {
if (I.getType () == Type::VoidTy)
return;
unsigned DestReg = getReg (I);
switch (getClass (I.getType ())) {
switch (getClassB (I.getType ())) {
case cByte:
case cShort:
case cInt:
@ -823,7 +823,7 @@ void V8ISel::visitCallInst(CallInst &I) {
void V8ISel::visitReturnInst(ReturnInst &I) {
if (I.getNumOperands () == 1) {
unsigned RetValReg = getReg (I.getOperand (0));
switch (getClass (I.getOperand (0)->getType ())) {
switch (getClassB (I.getOperand (0)->getType ())) {
case cByte:
case cShort:
case cInt: