3 ms·
Thanks so much - I was unaware of this clang flag. I just confirmed, it does exactly what I was hoping for! I suggested that this be an optional flag, not the
by gregfjohnson 3y ago
Thanks so much - I was unaware of this clang flag. I just confirmed, it does exactly what I was hoping for!
I suggested that this be an optional flag, not the default behavior. I could see using it for unit-test/static-analysis builds where performance is not the main concern. (I have not looked at the generated assembly or done a performance comparison, but it might be that the -fsanitize=integer flag would slow the generated code down.)
- jcelerier 3y agoAnything that starts with -fsanitize is really only meant for debugging, definitely not production.