Hacker News new | comments | show | ask | jobs | submit login

UBSan catches undefined behavior at runtime - so by definition everything it reports was not used by Clang to fold your program to a constant.

When the sanitizer is on, the optimizer (modulo bugs of course) does not remove the checks.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact