mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-19 01:27:40 +00:00
Fix a stupid bug when parsing TargetData strings.
llvm-svn: 28373
This commit is contained in:
parent
94297e068f
commit
ab4cc2c9a5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user