Fix typo introduced in r292960 that may affect -flto -save-temps (saving the optimized bitcode)

llvm-svn: 293370
This commit is contained in:
Mehdi Amini 2017-01-28 06:07:17 +00:00
parent 2b85475c91
commit 655f794964
1 changed files with 1 additions and 1 deletions

View File

@ -6519,7 +6519,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
// 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");