]> granicus.if.org Git - clang/commitdiff
Fix typo introduced in r292960 that may affect -flto -save-temps (saving the optimize...
authorMehdi Amini <mehdi.amini@apple.com>
Sat, 28 Jan 2017 06:07:17 +0000 (06:07 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Sat, 28 Jan 2017 06:07:17 +0000 (06:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@293370 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp

index b431ff3e6ff36f9e43f38a527938ac4eace05a84..24a9336a2eea33af58f58ea65a2b184daba5e727 100644 (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");