mirror of
https://github.com/intel/llvm.git
synced 2026-01-30 14:07:28 +08:00
Don't set the ABI to apcs-gnu for non-ARM iOS targets (i.e., the
simulator).
<rdar://problem/17399406>
llvm-svn: 211536
This commit is contained in:
@@ -157,8 +157,9 @@ ClangExpressionParser::ClangExpressionParser (ExecutionContextScope *exe_scope,
|
||||
}
|
||||
|
||||
// Any arm32 iOS environment, but not on arm64
|
||||
if (m_compiler->getTargetOpts().Triple.find("arm64") == std::string::npos
|
||||
&& m_compiler->getTargetOpts().Triple.find("ios") != std::string::npos)
|
||||
if (m_compiler->getTargetOpts().Triple.find("arm64") == std::string::npos &&
|
||||
m_compiler->getTargetOpts().Triple.find("arm") != std::string::npos &&
|
||||
m_compiler->getTargetOpts().Triple.find("ios") != std::string::npos)
|
||||
{
|
||||
m_compiler->getTargetOpts().ABI = "apcs-gnu";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user