mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-15 15:48:38 +00:00
reject invalid input with a caret, e.g.:
simple-tests.txt:16:1: error: invalid instruction 0xff 0xff ^ llvm-svn: 91898
This commit is contained in:
parent
0dc93264b1
commit
e9288e57d9
@ -61,8 +61,8 @@ static bool PrintInst(const llvm::MCDisassembler &DisAsm,
|
||||
llvm::raw_string_ostream verboseOS(verboseOStr);
|
||||
|
||||
if (!DisAsm.getInstruction(Inst, Size, memoryObject, 0, verboseOS)) {
|
||||
// FIXME: Caret.
|
||||
errs() << "error: invalid instruction\n";
|
||||
SM.PrintMessage(SMLoc::getFromPointer(Bytes[0].second),
|
||||
"invalid instruction", "error");
|
||||
errs() << "Diagnostic log:" << '\n';
|
||||
errs() << verboseOS.str() << '\n';
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user