forked from OSchip/llvm-project
Fix a stupid bug when parsing TargetData strings.
llvm-svn: 28373
This commit is contained in:
parent
b390c47b4b
commit
fc08d5a2a8
|
@ -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