diff options
author | Chris Lattner <sabre@nondot.org> | 2007-01-23 00:36:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-01-23 00:36:17 +0000 |
commit | fad2912522a4c97128d8afcc2f40ca0e39287ddb (patch) | |
tree | cbcd526462eb8cd6c7b89f688e02896b5a56bcac /lib/CodeGen/AsmPrinter.cpp | |
parent | 07700d123e8385476879d567a30f865762178fc3 (diff) |
Fix a bunch of inline asm failures
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33454 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp index a9e720149e..d9b97f7005 100644 --- a/lib/CodeGen/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter.cpp @@ -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: '" |