incertia created this revision.
incertia added reviewers: rjmccall, rsmith.
incertia added a project: clang.
Herald added a subscriber: cfe-commits.
To my understanding, the contents of a condition will always be implicitly
casted to an rvalue before evaluation. Thus, moving the check to
Perform
incertia updated this revision to Diff 141477.
incertia added a comment.
Pulled the check outside of the case statement.
https://reviews.llvm.org/D45401
Files:
lib/Sema/SemaExpr.cpp
lib/Sema/SemaExprCXX.cpp
Index: lib/Sema/SemaExprCXX.cpp
==