Add a `break' in the switch/case statement between the int/fp sections.
authorMisha Brukman <brukman+llvm@gmail.com>
Thu, 24 Jun 2004 23:53:24 +0000 (23:53 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Thu, 24 Jun 2004 23:53:24 +0000 (23:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14385 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPC32ISelSimple.cpp
lib/Target/PowerPC/PowerPCISelSimple.cpp

index 34721eeef7b4a1a2e358d62a704e1dca1f1056a9..063001d60bf44758d98eb4b027b8d99e578280aa 100644 (file)
@@ -1049,7 +1049,6 @@ void ISel::promote32(unsigned targetReg, const ValueRecord &VR) {
 ///
 void ISel::visitReturnInst(ReturnInst &I) {
   Value *RetVal = I.getOperand(0);
-
   switch (getClassB(RetVal->getType())) {
   case cByte:   // integral return values: extend or move into r3 and return
   case cShort:
@@ -1303,6 +1302,7 @@ void ISel::doCall(const ValueRecord &Ret, MachineInstr *CallMI,
     case cInt:
       // Integral results are in r3
       BuildMI(BB, PPC32::OR, 2, Ret.Reg).addReg(PPC32::R3).addReg(PPC32::R3);
+      break;
     case cFP:     // Floating-point return values live in f1
       BuildMI(BB, PPC32::FMR, 1, Ret.Reg).addReg(PPC32::F1);
       break;
index 34721eeef7b4a1a2e358d62a704e1dca1f1056a9..063001d60bf44758d98eb4b027b8d99e578280aa 100644 (file)
@@ -1049,7 +1049,6 @@ void ISel::promote32(unsigned targetReg, const ValueRecord &VR) {
 ///
 void ISel::visitReturnInst(ReturnInst &I) {
   Value *RetVal = I.getOperand(0);
-
   switch (getClassB(RetVal->getType())) {
   case cByte:   // integral return values: extend or move into r3 and return
   case cShort:
@@ -1303,6 +1302,7 @@ void ISel::doCall(const ValueRecord &Ret, MachineInstr *CallMI,
     case cInt:
       // Integral results are in r3
       BuildMI(BB, PPC32::OR, 2, Ret.Reg).addReg(PPC32::R3).addReg(PPC32::R3);
+      break;
     case cFP:     // Floating-point return values live in f1
       BuildMI(BB, PPC32::FMR, 1, Ret.Reg).addReg(PPC32::F1);
       break;