[PATCH] D28731: [PATCH] Fix warning about parentheses in boolean expression.
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 14 09:40:33 PST 2017
fhahn updated this revision to Diff 84450.
Repository:
rL LLVM
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/1cfb7654/attachment.bin>
More information about the llvm-commits
mailing list