re PR middle-end/39214 (internal compiler error: Segmentation fault)

2009-02-17  Richard Guenther  <rguenther@suse.de>
  
	PR middle-end/39214
	* langhooks.c (lhd_print_error_function): Check for NULL block.

From-SVN: r144234
This commit is contained in:
Richard Guenther 2009-02-17 15:20:18 +00:00 committed by Richard Biener
parent 73a63870d5
commit 91ab2c868e
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-02-17 Richard Guenther <rguenther@suse.de>
PR middle-end/39214
* langhooks.c (lhd_print_error_function): Check for NULL block.
2009-02-17 Richard Guenther <rguenther@suse.de>
PR tree-optimization/39204

View File

@ -437,7 +437,7 @@ lhd_print_error_function (diagnostic_context *context, const char *file,
while (block && TREE_CODE (block) == BLOCK)
block = BLOCK_SUPERCONTEXT (block);
if (TREE_CODE (block) == FUNCTION_DECL)
if (block && TREE_CODE (block) == FUNCTION_DECL)
fndecl = block;
abstract_origin = NULL;
}