]> granicus.if.org Git - llvm/commitdiff
[ExecutionEngine] Fix rL362941: Add UnaryOperator visitor to the interpreter
authorCameron McInally <cameron.mcinally@nyu.edu>
Mon, 10 Jun 2019 16:05:25 +0000 (16:05 +0000)
committerCameron McInally <cameron.mcinally@nyu.edu>
Mon, 10 Jun 2019 16:05:25 +0000 (16:05 +0000)
Missed break statements. This was D62881.

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

lib/ExecutionEngine/Interpreter/Execution.cpp

index 67180f2c21f7a611d5ff1a556ee046f3719b241d..51f31d3d5d8f6bd407e6b096b88c8978247a8f55 100644 (file)
@@ -50,8 +50,10 @@ static void executeFNegInst(GenericValue &Dest, GenericValue Src, Type *Ty) {
   switch (Ty->getTypeID()) {
   case Type::FloatTyID:
     Dest.FloatVal = -Src.FloatVal;
+    break;
   case Type::DoubleTyID:
     Dest.DoubleVal = -Src.DoubleVal;
+    break;
   default:
     llvm_unreachable("Unhandled type for FNeg instruction");
   }