Fix a stupid bug when parsing TargetData strings.

llvm-svn: 28373
This commit is contained in:
Owen Anderson 2006-05-17 21:56:02 +00:00
parent b390c47b4b
commit fc08d5a2a8
1 changed files with 3 additions and 1 deletions

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;