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

John Regehr via llvm-dev llvm-dev at lists.llvm.org
Thu Jul 20 18:55:44 PDT 2017

Most of UBSan runs in the late parts of Clang, see the lib/CodeGen 

> 2.            My firmware usage scenario is quite sensitive to the code 
> size. Does the Ubsan have the build option to use callbacks instead of 
> inline code for the Ubsan instrumentations (like Asan's 
> -asan-instrumentation-with-call-threshold=0) ?

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


More information about the llvm-dev mailing list