[PATCH] D38718: [Sema] No -Wtautological-pointer-compare warning on variables within parentheses

2017-10-10 Thread Erik Viktorsson via Phabricator via cfe-commits
erikv updated this revision to Diff 118347. erikv added a comment. Added new test Repository: rL LLVM https://reviews.llvm.org/D38718 Files: lib/Sema/SemaChecking.cpp test/Sema/conditional-expr.c test/Sema/warn-tautological-compare.c Index: test/Sema/conditional-expr.c ==

[PATCH] D38718: Patch to Bugzilla 20951

2017-10-10 Thread Erik Viktorsson via Phabricator via cfe-commits
erikv created this revision. Submitting a patch to Bugzilla 20951. Simply replaced the function call IgnoreImpCasts to IgnoreParenImpCasts which seems to more appropriate. I also had to modify a test cast in test/Sema/conditional-expr.c /E https://reviews.llvm.org/D38718 Files: lib/Sema/Se

[PATCH] D38717: Patch to Bugzilla 31373

2017-10-10 Thread Erik Viktorsson via Phabricator via cfe-commits
erikv created this revision. Committing a patch to Bugzilla 31373 A novice programmer so hopefully it complies with the coding policy. I had to disable an assert in lib/CodeGen/CGExpr.cpp since it requires that all expressions are marked as Used or referenced, which is not possible if we want t