1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

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