Author: mehdi_amini Date: Sat Jan 28 00:07:17 2017 New Revision: 293370 URL: http://llvm.org/viewvc/llvm-project?rev=293370&view=rev Log: Fix typo introduced in r292960 that may affect -flto -save-temps (saving the optimized bitcode)
Modified: cfe/trunk/lib/Driver/Tools.cpp Modified: cfe/trunk/lib/Driver/Tools.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=293370&r1=293369&r2=293370&view=diff ============================================================================== --- cfe/trunk/lib/Driver/Tools.cpp (original) +++ cfe/trunk/lib/Driver/Tools.cpp Sat Jan 28 00:07:17 2017 @@ -6519,7 +6519,7 @@ void Clang::ConstructJob(Compilation &C, // pristine IR generated by the frontend. Ideally, a new compile action should // be added so both IR can be captured. if (C.getDriver().isSaveTempsEnabled() && - !C.getDriver().embedBitcodeInObject() && !C.getDriver().isUsingLTO() && + !(C.getDriver().embedBitcodeInObject() && !C.getDriver().isUsingLTO()) && isa<CompileJobAction>(JA)) CmdArgs.push_back("-disable-llvm-passes"); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits