[PATCH] D58878: [Diagnostics] Warn for assignments in bool contexts

Dávid Bolvanský via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 7 07:04:17 PST 2019


xbolva00 added a comment.

Addressed notes.

Not sure why we miss
_Bool warn3(int x, _Bool a) {

  return x = 0 || a;

}

in C mode :/


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58878/new/

https://reviews.llvm.org/D58878





More information about the cfe-commits mailing list