forked from OSchip/llvm-project
[llvm-exegesis] Crash when assembling invalid Operand
llvm-svn: 344907
This commit is contained in:
parent
02f70a3fde
commit
18ef4a4a0d
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue