Fix assertion failure when calling or returning from a function which
authorBrian Gaeke <gaeke@uiuc.edu>
Sun, 10 Oct 2004 20:34:17 +0000 (20:34 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Sun, 10 Oct 2004 20:34:17 +0000 (20:34 +0000)
returns 'bool' type.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16884 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Sparc/SparcV8ISelSimple.cpp
lib/Target/SparcV8/SparcV8ISelSimple.cpp

index d51fa1fbe970b33206cbf57085acc8fd0a7ef321..ce91a37958bee8fb6b5949e49f2913fec3f7f634 100644 (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:
index d51fa1fbe970b33206cbf57085acc8fd0a7ef321..ce91a37958bee8fb6b5949e49f2913fec3f7f634 100644 (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: