This is motivated by the thread:
[cfe-dev] Disabling ubsan's object size check at -O0
I think the driver is the best place to disable a sanitizer check at particular optimization levels. Doing so in the frontend is messy, and makes it really hard to test IR generation for the check. Making the change in CodeGen has the same issues.