[llvm-commits] [llvm-gcc-4.2] r93387 - /llvm-gcc-4.2/trunk/gcc/omp-low.c
Stuart Hastings
stuart at apple.com
Wed Jan 13 16:44:09 PST 2010
Author: stuart
Date: Wed Jan 13 18:44:08 2010
New Revision: 93387
URL: http://llvm.org/viewvc/llvm-project?rev=93387&view=rev
Log:
Decorate an OMP-specific MODIFY with correct lexical block.
Modified:
llvm-gcc-4.2/trunk/gcc/omp-low.c
Modified: llvm-gcc-4.2/trunk/gcc/omp-low.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/omp-low.c?rev=93387&r1=93386&r2=93387&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/omp-low.c (original)
+++ llvm-gcc-4.2/trunk/gcc/omp-low.c Wed Jan 13 18:44:08 2010
@@ -2870,6 +2870,15 @@
t = build2 (MULT_EXPR, type, t, fd->step);
t = build2 (PLUS_EXPR, type, t, fd->n1);
t = build2 (MODIFY_EXPR, void_type_node, fd->v, t);
+ /* LLVM LOCAL begin 7387470 */
+ /* Decorate this MODIFY_EXPR with the correct lexical block. */
+ {
+ extern tree debug_find_var_in_block_tree (tree, tree);
+ TREE_BLOCK(t) =
+ debug_find_var_in_block_tree(fd->v,
+ DECL_INITIAL(current_function_decl));
+ }
+ /* LLVM LOCAL end 7387470 */
gimplify_and_add (t, &list);
t = fold_convert (type, e0);
More information about the llvm-commits
mailing list