]> granicus.if.org Git - llvm/commitdiff
[ThinLTO] Add parenthesis as per build warning
authorTeresa Johnson <tejohnson@google.com>
Thu, 5 Jan 2017 15:10:10 +0000 (15:10 +0000)
committerTeresa Johnson <tejohnson@google.com>
Thu, 5 Jan 2017 15:10:10 +0000 (15:10 +0000)
Fixes a warning about "||" and "&&" due to r291108.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291119 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/FunctionImportUtils.cpp

index de203b545d0de66e29cc0e2702bb23bf51387d8d..678d02e05d423ee177331f8af63d2e8ed29701ae 100644 (file)
@@ -57,9 +57,8 @@ bool FunctionImportGlobalProcessing::shouldPromoteLocalToGlobal(
     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,