[llvm-exegesis] Crash when assembling invalid Operand

llvm-svn: 344907
This commit is contained in:
Guillaume Chatelet 2018-10-22 15:06:10 +00:00
parent 02f70a3fde
commit 18ef4a4a0d
1 changed files with 2 additions and 0 deletions

View File

@ -110,6 +110,8 @@ static void fillMachineFunction(llvm::MachineFunction &MF,
Builder.addReg(Op.getReg(), Flags);
} else if (Op.isImm()) {
Builder.addImm(Op.getImm());
} else if (!Op.isValid()) {
llvm_unreachable("Operand is not set");
} else {
llvm_unreachable("Not yet implemented");
}