[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.

llvm-svn: 362958

llvm/lib/ExecutionEngine/Interpreter/Execution.cpp

index 67180f2..51f31d3 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");
   }