diff options
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInstance.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index 76f2f9bc6b2..cac73befff0 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -830,8 +830,7 @@ bool CompilerInstance::ExecuteAction(FrontendAction &Act) { // Create the target instance. setTarget(TargetInfo::CreateTargetInfo(getDiagnostics(), - getInvocation().TargetOpts, - getInvocation().getCodeGenOpts())); + getInvocation().TargetOpts)); if (!hasTarget()) return false; @@ -839,8 +838,7 @@ bool CompilerInstance::ExecuteAction(FrontendAction &Act) { if (getLangOpts().CUDA && !getFrontendOpts().AuxTriple.empty()) { std::shared_ptr<TargetOptions> TO(new TargetOptions); TO->Triple = getFrontendOpts().AuxTriple; - setAuxTarget(TargetInfo::CreateTargetInfo(getDiagnostics(), TO, - getInvocation().getCodeGenOpts())); + setAuxTarget(TargetInfo::CreateTargetInfo(getDiagnostics(), TO)); } // Inform the target of the language options. |