MipsISelLowering.cpp: Fill unreachable paths to fix warnings. [-Wsometimes-uninitialized]
authorNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 24 Jan 2013 06:08:06 +0000 (06:08 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 24 Jan 2013 06:08:06 +0000 (06:08 +0000)
FIXME: Could they, unreachable(s), be removed?
FIXME: I could prefer the coding standards...

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

lib/Target/Mips/MipsISelLowering.cpp

index 5399b45ee61ef9ccdb9d7f6b4c4fe0f798df8346..f37b652fec918db9b87d2e6e2079275302d3e688 100644 (file)
@@ -2917,6 +2917,12 @@ const char* MipsTargetLowering::
                (RetTy->getContainedType(1)->isDoubleTy())) {
         result = dcMips16Helper[stubNum];
       }
+      else {
+        llvm_unreachable("Uncovered condition");
+      }
+    }
+    else {
+      llvm_unreachable("Uncovered condition");
     }
   }
   else {