[llvm-dev] Where does the LLVM implement the Ubsan's instrumentations?

John Regehr via llvm-dev
2017-07-21T03:41:45Z

> I think your best bet for controlling code bloat is to compile with
> -fsanitize=undefined -fsanitize-trap=undefined.

Also you may not need all of UBSan's checks at the same time -- so pick
and choose among its checks using the finer-grained flags.

If you're really stuck against a hard limit on code size, try applying
UBSan to a subset of files in your project at a time.

John