On Apr 19, 2012, at 6:30 PM, Chad Rosier wrote: > Author: mcrosier > Date: Thu Apr 19 19:30:04 2012 > New Revision: 155180 > > URL: http://llvm.org/viewvc/llvm-project?rev=155180&view=rev > Log: > When generating the clang crash diagnostic script, strip out the -D, -F, and > -I > flags. We have preprocessed source, so we don't need these. > > No test case as it's fairly difficult to make the compiler crash on demand. > I'll > patiently wait for Ben to tell me how to do this in 2 lines of code. :) Why wait? I'll tell you now.
Wanna crash the compiler? There's a pragma for that. :) #pragma clang __debug crash This will make the compiler crash. In fact, there's a whole bunch of __debug pragmas which all make the compiler die in different ways. Take a look at lib/Lex/Pragma.cpp:981 to see all the __debug pragmas. Chip _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
