[PATCH] D47105: Fix compiler warning of extraneous parentheses
Tom Rix via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat May 19 13:07:13 PDT 2018
trixirt updated this revision to Diff 147678.
trixirt added a comment.
More content.
https://reviews.llvm.org/D47105
Files:
lib/Support/regengine.inc
Index: lib/Support/regengine.inc
===================================================================
--- lib/Support/regengine.inc
+++ lib/Support/regengine.inc
@@ -703,7 +703,8 @@
/* next character */
lastc = c;
c = (p == m->endp) ? OUT : *p;
- if (EQ(st, fresh))
+ /* EQ has ()'s, so another set for 'if' is not necessary */
+ if EQ(st, fresh)
coldp = p;
/* is there an EOL and/or BOL between lastc and c? */
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47105.147678.patch
Type: text/x-patch
Size: 432 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180519/e9acb3ee/attachment.bin>
More information about the llvm-commits
mailing list