mantognini added a comment.

In https://reviews.llvm.org/D52875#1255146, @erichkeane wrote:

> Can you write tests for this please?  Particularly validate the results in a 
> constexpr context.


There are already some tests for those builtins (not sure about constexpr 
context). They already tests that the builtins can be used as branching 
condition. However, the current implementation of `Sema::BuildResolvedCallExpr` 
assumes that by default builtins return `bool`. In 
https://reviews.llvm.org/D52879, I improve that and not having the above fix 
makes the existing tests fail, so I believe we don't need to add more tests.

> Additionally, these all have the 't' flag, which means that these signatures 
> are meaningless, right?  What are you seeing where this works incorrectly?

I reckon the signature does't include the return type, hence it isn't 
meaningless even with the `t` flag.


Repository:
  rC Clang

https://reviews.llvm.org/D52875



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

Reply via email to