mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-02 15:16:08 +00:00
Fix a bunch of inline asm failures
llvm-svn: 33454
This commit is contained in:
parent
76231aad45
commit
d39e38848b
@ -779,6 +779,7 @@ void AsmPrinter::printInlineAsm(const MachineInstr *MI) const {
|
||||
|
||||
const char *IDStart = LastEmitted;
|
||||
char *IDEnd;
|
||||
errno = 0;
|
||||
long Val = strtol(IDStart, &IDEnd, 10); // We only accept numbers for IDs.
|
||||
if (!isdigit(*IDStart) || (Val == 0 && errno == EINVAL)) {
|
||||
cerr << "Bad $ operand number in inline asm string: '"
|
||||
|
Loading…
x
Reference in New Issue
Block a user