summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2017-01-28 06:07:17 +0000
committerMehdi Amini <mehdi.amini@apple.com>2017-01-28 06:07:17 +0000
commit655f794964b65a4051c8de0b2b26206dc6284876 (patch)
treee26f30db1d571a702617ba0919973ed31c4fcdd1 /clang/lib/Driver/Tools.cpp
parent2b85475c91e80786748c36083e815e8081fd5b21 (diff)
downloadbcm5719-llvm-655f794964b65a4051c8de0b2b26206dc6284876.tar.gz
bcm5719-llvm-655f794964b65a4051c8de0b2b26206dc6284876.zip
Fix typo introduced in r292960 that may affect -flto -save-temps (saving the optimized bitcode)
llvm-svn: 293370
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r--clang/lib/Driver/Tools.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp
index b431ff3e6ff..24a9336a2ee 100644
--- a/clang/lib/Driver/Tools.cpp
+++ b/clang/lib/Driver/Tools.cpp
@@ -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");
OpenPOWER on IntegriCloud