forked from OSchip/llvm-project
parent
aafd209632
commit
a944a9a902
|
@ -192,8 +192,7 @@ int main(int argc, char **argv, char * const *envp) {
|
|||
} else {
|
||||
// Otherwise, if there is a .bc suffix on the executable strip it off, it
|
||||
// might confuse the program.
|
||||
if (InputFile.size() > 3 &&
|
||||
InputFile.rfind(".bc") == InputFile.length() - 3)
|
||||
if (StringRef(InputFile).endswith(".bc"))
|
||||
InputFile.erase(InputFile.length() - 3);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue