heturing wrote:

> > in _debug mode_ only
> 
> Or rather than in debug mode perhaps if assertions are enabled. Not sure what 
> the expected slowdown for an assertions build is usually.
> 
> @AaronBallman for opinions

I implemented an assertions-only cross-check for this under #ifndef NDEBUG. 
When the fast path succeeds, the code also runs the existing slow path and 
checks that the deduced canonical types match.

https://github.com/llvm/llvm-project/pull/188196
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to