summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-05-20 21:16:59 +0000
committerChris Lattner <sabre@nondot.org>2006-05-20 21:16:59 +0000
commitf489fb24f2bd3efb70e0bb2a4c0440a9c25e0e67 (patch)
tree25d8459875c05c76c3465a4bb0e030f87ca15a94 /lib
parent4f7f71de43f2b9981e6e9df97f7b4f296b31a69f (diff)
downloadllvm-f489fb24f2bd3efb70e0bb2a4c0440a9c25e0e67.tar.gz
llvm-f489fb24f2bd3efb70e0bb2a4c0440a9c25e0e67.tar.bz2
llvm-f489fb24f2bd3efb70e0bb2a4c0440a9c25e0e67.tar.xz
Fix a parsing bug that caused 7 llvm-test regressions on PPC last night.
I'm suprised it didn't cause more! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28421 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/TargetData.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Target/TargetData.cpp b/lib/Target/TargetData.cpp
index 7bb77636c8..b94cb2de98 100644
--- a/lib/Target/TargetData.cpp
+++ b/lib/Target/TargetData.cpp
@@ -157,31 +157,31 @@ TargetData::TargetData(const std::string &TargetName,
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: