[llvm] r291119 - [ThinLTO] Add parenthesis as per build warning

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 5 07:10:11 PST 2017


Author: tejohnson
Date: Thu Jan  5 09:10:10 2017
New Revision: 291119

URL: http://llvm.org/viewvc/llvm-project?rev=291119&view=rev
Log:
[ThinLTO] Add parenthesis as per build warning

Fixes a warning about "||" and "&&" due to r291108.

Modified:
    llvm/trunk/lib/Transforms/Utils/FunctionImportUtils.cpp

Modified: llvm/trunk/lib/Transforms/Utils/FunctionImportUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/FunctionImportUtils.cpp?rev=291119&r1=291118&r2=291119&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/FunctionImportUtils.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/FunctionImportUtils.cpp Thu Jan  5 09:10:10 2017
@@ -57,9 +57,8 @@ bool FunctionImportGlobalProcessing::sho
     return false;
 
   if (isPerformingImport()) {
-    assert(!GlobalsToImport->count(SGV) ||
-           !isNonRenamableLocal(*SGV) &&
-               "Attempting to promote non-renamable local");
+    assert((!GlobalsToImport->count(SGV) || !isNonRenamableLocal(*SGV)) &&
+           "Attempting to promote non-renamable local");
     // We don't know for sure yet if we are importing this value (as either
     // a reference or a def), since we are simply walking all values in the
     // module. But by necessity if we end up importing it and it is local,




More information about the llvm-commits mailing list