summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2017-01-05 15:10:10 +0000
committerTeresa Johnson <tejohnson@google.com>2017-01-05 15:10:10 +0000
commit2b6038458150b22fa2d4d802d8340a217e0c20c1 (patch)
tree1225b5c986ef6cb3e337570f7baee751ab2d2499 /llvm/lib/Transforms/Utils
parent66c007d507cc7019f082c4f9d30b0017008919cc (diff)
downloadbcm5719-llvm-2b6038458150b22fa2d4d802d8340a217e0c20c1.tar.gz
bcm5719-llvm-2b6038458150b22fa2d4d802d8340a217e0c20c1.zip
[ThinLTO] Add parenthesis as per build warning
Fixes a warning about "||" and "&&" due to r291108. llvm-svn: 291119
Diffstat (limited to 'llvm/lib/Transforms/Utils')
-rw-r--r--llvm/lib/Transforms/Utils/FunctionImportUtils.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/FunctionImportUtils.cpp b/llvm/lib/Transforms/Utils/FunctionImportUtils.cpp
index de203b545d0..678d02e05d4 100644
--- a/llvm/lib/Transforms/Utils/FunctionImportUtils.cpp
+++ b/llvm/lib/Transforms/Utils/FunctionImportUtils.cpp
@@ -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,
OpenPOWER on IntegriCloud