[llvm-commits] [llvm-gcc-4.2] r99536 - /llvm-gcc-4.2/trunk/gcc/cp/pt.c
Stuart Hastings
stuart at apple.com
Thu Mar 25 11:31:51 PDT 2010
Author: stuart
Date: Thu Mar 25 13:31:51 2010
New Revision: 99536
URL: http://llvm.org/viewvc/llvm-project?rev=99536&view=rev
Log:
Use accurate location for instantiated FUNCTION_DECL. Radar 7514620.
Modified:
llvm-gcc-4.2/trunk/gcc/cp/pt.c
Modified: llvm-gcc-4.2/trunk/gcc/cp/pt.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/cp/pt.c?rev=99536&r1=99535&r2=99536&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/cp/pt.c (original)
+++ llvm-gcc-4.2/trunk/gcc/cp/pt.c Thu Mar 25 13:31:51 2010
@@ -6696,6 +6696,8 @@
template, and in any case are considered separate under the
discrete model. */
r = copy_decl (t);
+ /* LLVM LOCAL 7514620 */
+ DECL_SOURCE_LOCATION(r) = saved_loc;
DECL_USE_TEMPLATE (r) = 0;
TREE_TYPE (r) = type;
/* Clear out the mangled name and RTL for the instantiation. */
More information about the llvm-commits
mailing list