commit 0dab78fa5a4af873756f9896032114164c6a30cc
Author: Jason Merrill <jason@redhat.com>
Date: Tue Oct 26 18:31:04 2010 -0400
* except.c (build_throw): Set EXPR_LOCATION.
@@ -648,7 +648,9 @@ build_throw (tree exp)
{
if (cfun)
current_function_returns_abnormally = 1;
- return build_min (THROW_EXPR, void_type_node, exp);
+ exp = build_min (THROW_EXPR, void_type_node, exp);
+ SET_EXPR_LOCATION (exp, input_location);
+ return exp;
}
if (exp == null_node)
@@ -834,6 +836,7 @@ build_throw (tree exp)
}
exp = build1 (THROW_EXPR, void_type_node, exp);
+ SET_EXPR_LOCATION (exp, input_location);
return exp;
}