[PATCH] D28731: [PATCH] Fix warning about parentheses in boolean expression.
Gonsolo via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 14 07:15:51 PST 2017
gonsolo created this revision.
gonsolo added a reviewer: dberlin.
gonsolo added a subscriber: llvm-commits.
Fix a warning from gcc.
https://reviews.llvm.org/D28731
Files:
lib/Transforms/Scalar/NewGVN.cpp
Index: lib/Transforms/Scalar/NewGVN.cpp
===================================================================
--- lib/Transforms/Scalar/NewGVN.cpp
+++ lib/Transforms/Scalar/NewGVN.cpp
@@ -1079,10 +1079,10 @@
assert(
!isa<Instruction>(NewClass->RepLeader) || !NewClass->RepLeader ||
I == NewClass->RepLeader ||
- !DT->properlyDominates(
+ (!DT->properlyDominates(
I->getParent(),
cast<Instruction>(NewClass->RepLeader)->getParent()) &&
- "New class for instruction should not be dominated by instruction");
+ "New class for instruction should not be dominated by instruction"));
if (NewClass->RepLeader != I) {
auto DFSNum = InstrDFS.lookup(I);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28731.84450.patch
Type: text/x-patch
Size: 719 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170114/03a11789/attachment.bin>
More information about the llvm-commits
mailing list