[PATCH] D52446: Remove Found.clear() to silent bugprone-use-after-move after rC342925

2018-09-24 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. I think the check is wrong here. We need this `clear` call to reinitialize the object after moving from it. Maybe that function should be annotated as reinitializing the object instead? Repository: rC Clang https://reviews.llvm.org/D52446

[PATCH] D52446: Remove Found.clear() to silent bugprone-use-after-move after rC342925

2018-09-24 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay created this revision. MaskRay added a reviewer: rsmith. Herald added a subscriber: cfe-commits. MaskRay added a reviewer: clang. Repository: rC Clang https://reviews.llvm.org/D52446 Files: lib/Sema/SemaStmt.cpp Index: lib/Sema/SemaStmt.cpp