Skip to content

Commit

Permalink
[ExecutionEngine] Fix rL362941: Add UnaryOperator visitor to the inte…
Browse files Browse the repository at this point in the history
…rpreter

Missed break statements. This was D62881.

llvm-svn: 362958
  • Loading branch information
mcinally committed Jun 10, 2019
1 parent 9b11e93 commit 670d0f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
Expand Up @@ -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");
}
Expand Down

0 comments on commit 670d0f4

Please sign in to comment.