rsmith added a comment.

This is still evaluating the expression twice. To evaluate it only once, you'll 
need to sink the checks into `Sema::VerifyIntegerConstantExpression`'s call to 
`EvaluateKnownConstInt`. (That should also remove the redundant diagnostics 
noise in the language modes where signed overflow renders an expression 
non-constant.)


https://reviews.llvm.org/D52750



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

Reply via email to