[ExecutionEngine] Fix rL362941: Add UnaryOperator visitor to the interpreter

Missed break statements. This was D62881.

llvm-svn: 362958
This commit is contained in:
Cameron McInally 2019-06-10 16:05:25 +00:00
parent 11994dfd02
commit f23300211d

View 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");
}