Fix a stupid bug when parsing TargetData strings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28373 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Owen Anderson 2006-05-17 21:56:02 +00:00
parent 7044aac97c
commit 84cc6dbd25

View File

@ -139,7 +139,9 @@ TargetData::TargetData(const std::string &TargetName,
while (temp.length() > 0) {
std::string token = getToken(temp, "-");
switch(token[0]) {
char signal = getToken(token, ":")[0];
switch(signal) {
case 'E':
LittleEndian = false;
break;