rjmccall added a comment.

In https://reviews.llvm.org/D44883#1051878, @lebedev.ri wrote:

> Ok, tried llvm stage2 build, and it failed as expected, in code that 
> intentionally does self-assignment:


Actually, this is not the sort of failure that I think should worry you.  Any 
new warning has the ability to break -Werror builds; if I saw this failure in a 
build, I would totally consider it a project bug, not a false-positive.

In this case, you should just make sure there's a reasonable way to suppress 
the warning and then fix the code in LLVM by doing that.  Explicitly casting 
the RHS to the right reference type should shut the compiler up.


Repository:
  rC Clang

https://reviews.llvm.org/D44883



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to