[llvm-commits] CVS: llvm/lib/CodeGen/AsmPrinter.cpp

Chris Lattner sabre at nondot.org
Mon Jan 22 16:36:33 PST 2007



Changes in directory llvm/lib/CodeGen:

AsmPrinter.cpp updated: 1.137 -> 1.138
---
Log message:

Fix a bunch of inline asm failures


---
Diffs of the changes:  (+1 -0)

 AsmPrinter.cpp |    1 +
 1 files changed, 1 insertion(+)


Index: llvm/lib/CodeGen/AsmPrinter.cpp
diff -u llvm/lib/CodeGen/AsmPrinter.cpp:1.137 llvm/lib/CodeGen/AsmPrinter.cpp:1.138
--- llvm/lib/CodeGen/AsmPrinter.cpp:1.137	Wed Jan 17 19:12:56 2007
+++ llvm/lib/CodeGen/AsmPrinter.cpp	Mon Jan 22 18:36:17 2007
@@ -779,6 +779,7 @@
       
       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: '" 






More information about the llvm-commits mailing list