mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Bug fix:
string::find returns string::npos if the substring is not found. llvm-svn: 73145
This commit is contained in:
parent
23d6f0b5c7
commit
65d1c4f548
@ -248,7 +248,7 @@ bool LTOCodeGenerator::assemble(const std::string& asmPath,
|
||||
std::vector<const char*> args;
|
||||
std::string targetTriple = _linker.getModule()->getTargetTriple();
|
||||
args.push_back(tool.c_str());
|
||||
if ( targetTriple.find("darwin") != targetTriple.size() ) {
|
||||
if ( targetTriple.find("darwin") != std::string::npos ) {
|
||||
// darwin specific command line options
|
||||
if (strncmp(targetTriple.c_str(), "i386-apple-", 11) == 0) {
|
||||
args.push_back("-arch");
|
||||
|
Loading…
x
Reference in New Issue
Block a user