[LLVMdev] updated code size comparison

Chris Lattner clattner at apple.com
Wed Jan 20 12:54:29 PST 2010


On Jan 20, 2010, at 12:49 PM, John Regehr wrote:
>
> There has been talk (I don't remember where) about a Clang option for
> detecting undefined behavior.  Is there any progress on this?  This  
> could
> be used to enable automated random testing.


-fcatch-undefined-behavior:
http://clang.llvm.org/docs/UsersManual.html#codegen

Right now it only catches out of range shifts and simple array out of  
bound issues, not all undefined behavior.

-Chris



More information about the llvm-dev mailing list