mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-24 20:29:53 +00:00
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:
parent
7044aac97c
commit
84cc6dbd25
@ -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