summaryrefslogtreecommitdiffstats
path: root/llvm
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
commit482fb651449a6644e4249fda60ba3729994756ec (patch)
tree0df7b330f457ae99e8cc41000fc38aae571ba82d /llvm
parent401049ce33ae8ab52fb304e9646355882e176f37 (diff)
downloadbcm5719-llvm-482fb651449a6644e4249fda60ba3729994756ec.tar.gz
bcm5719-llvm-482fb651449a6644e4249fda60ba3729994756ec.zip
Fix a parsing bug that caused 7 llvm-test regressions on PPC last night.
I'm suprised it didn't cause more! llvm-svn: 28421
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Target/TargetData.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/Target/TargetData.cpp b/llvm/lib/Target/TargetData.cpp
index 7bb77636c81..b94cb2de98d 100644
--- a/llvm/lib/Target/TargetData.cpp
+++ b/llvm/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:
OpenPOWER on IntegriCloud