1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

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 94297e068f
commit ab4cc2c9a5

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;