[llvm-branch-commits] [llvm-gcc-branch] r99562 - /llvm-gcc-4.2/branches/Apple/Morbo/gcc/cp/pt.c

Stuart Hastings stuart at apple.com
Thu Mar 25 15:48:01 PDT 2010


Author: stuart
Date: Thu Mar 25 17:48:01 2010
New Revision: 99562

URL: http://llvm.org/viewvc/llvm-project?rev=99562&view=rev
Log:
Use accurate location for instantiated FUNCTION_DECL.  Radar 7514620.

Modified:
    llvm-gcc-4.2/branches/Apple/Morbo/gcc/cp/pt.c

Modified: llvm-gcc-4.2/branches/Apple/Morbo/gcc/cp/pt.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/branches/Apple/Morbo/gcc/cp/pt.c?rev=99562&r1=99561&r2=99562&view=diff
==============================================================================
--- llvm-gcc-4.2/branches/Apple/Morbo/gcc/cp/pt.c (original)
+++ llvm-gcc-4.2/branches/Apple/Morbo/gcc/cp/pt.c Thu Mar 25 17:48:01 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-branch-commits mailing list