[cfe-commits] r109725 - /cfe/trunk/lib/Lex/Pragma.cpp

Chris Lattner clattner at apple.com
Wed Jul 28 19:30:10 PDT 2010


On Jul 28, 2010, at 7:25 PM, Daniel Dunbar wrote:

> Author: ddunbar
> Date: Wed Jul 28 21:25:07 2010
> New Revision: 109725
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=109725&view=rev
> Log:
> Change #pragma crash to segv, instead of abort.

"volatile int*"  please

-Chris

> 
> Modified:
>    cfe/trunk/lib/Lex/Pragma.cpp
> 
> Modified: cfe/trunk/lib/Lex/Pragma.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/Pragma.cpp?rev=109725&r1=109724&r2=109725&view=diff
> ==============================================================================
> --- cfe/trunk/lib/Lex/Pragma.cpp (original)
> +++ cfe/trunk/lib/Lex/Pragma.cpp Wed Jul 28 21:25:07 2010
> @@ -605,7 +605,7 @@
>   }
> 
>   void DebugCrash() {
> -    abort();
> +    *(int*) 0x11 = 0;
>   }
> };
> 
> 
> 
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits





More information about the cfe-commits mailing list