[llvm-commits] CVS: llvm/lib/Target/TargetData.cpp

Chris Lattner lattner at cs.uiuc.edu
Sat May 20 14:17:11 PDT 2006



Changes in directory llvm/lib/Target:

TargetData.cpp updated: 1.66 -> 1.67
---
Log message:

Fix a parsing bug that caused 7 llvm-test regressions on PPC last night.  
I'm suprised it didn't cause more!


---
Diffs of the changes:  (+7 -7)

 TargetData.cpp |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)


Index: llvm/lib/Target/TargetData.cpp
diff -u llvm/lib/Target/TargetData.cpp:1.66 llvm/lib/Target/TargetData.cpp:1.67
--- llvm/lib/Target/TargetData.cpp:1.66	Fri May 19 19:24:56 2006
+++ llvm/lib/Target/TargetData.cpp	Sat May 20 16:16:59 2006
@@ -157,31 +157,31 @@
       PointerAlignment = atoi(getToken(token,":").c_str()) / 8;
       break;
     case 'd':
-      token = getToken(token,":"); //Ignore the size
+      getToken(token,":"); //Ignore the size
       DoubleAlignment = atoi(getToken(token,":").c_str()) / 8;
       break;
     case 'f':
-      token = getToken(token, ":"); //Ignore the size
+      getToken(token, ":"); //Ignore the size
       FloatAlignment = atoi(getToken(token, ":").c_str()) / 8;
       break;
     case 'l':
-      token = getToken(token, ":"); //Ignore the size
+      getToken(token, ":"); //Ignore the size
       LongAlignment = atoi(getToken(token, ":").c_str()) / 8;
       break;
     case 'i':
-      token = getToken(token, ":"); //Ignore the size
+      getToken(token, ":"); //Ignore the size
       IntAlignment = atoi(getToken(token, ":").c_str()) / 8;
       break;
     case 's':
-      token = getToken(token, ":"); //Ignore the size
+      getToken(token, ":"); //Ignore the size
       ShortAlignment = atoi(getToken(token, ":").c_str()) / 8;
       break;
     case 'b':
-      token = getToken(token, ":"); //Ignore the size
+      getToken(token, ":"); //Ignore the size
       ByteAlignment = atoi(getToken(token, ":").c_str()) / 8;
       break;
     case 'B':
-      token = getToken(token, ":"); //Ignore the size
+      getToken(token, ":"); //Ignore the size
       BoolAlignment = atoi(getToken(token, ":").c_str()) / 8;
       break;
     default:






More information about the llvm-commits mailing list