From 4c2a74ccfd6996fa95da8489e5fcb63aca18a4e1 Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Sat, 28 Jan 2017 06:07:17 +0000 Subject: [PATCH] Fix typo introduced in r292960 that may affect -flto -save-temps (saving the optimized bitcode) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@293370 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/Tools.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index b431ff3e6f..24a9336a2e 100644 --- a/lib/Driver/Tools.cpp +++ b/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(JA)) CmdArgs.push_back("-disable-llvm-passes"); -- 2.40.0