Merge pull request #15101 from markdroth/llvm_build_fix

Avoid warnings from LLVM -Wself-assign.
pull/15122/head
Mark D. Roth 7 years ago committed by GitHub
commit 2f08d17a6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      test/core/gprpp/ref_counted_ptr_test.cc

@ -88,7 +88,7 @@ TEST(RefCountedPtr, CopyAssignmentWhenEmpty) {
TEST(RefCountedPtr, CopyAssignmentToSelf) {
RefCountedPtr<Foo> foo(New<Foo>());
foo = foo;
foo = *&foo; // The "*&" avoids warnings from LLVM -Wself-assign.
}
TEST(RefCountedPtr, EnclosedScope) {

Loading…
Cancel
Save