From b857842c48c3ad9871db3479304938af2253d5ec Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Fri, 27 May 2011 22:32:55 +0000 Subject: Add unnamed_addr to internal globals which are only used as an operand to memcpy. (Spotted by looking at IR.) llvm-svn: 132226 --- clang/test/CodeGen/decl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/test/CodeGen/decl.c') diff --git a/clang/test/CodeGen/decl.c b/clang/test/CodeGen/decl.c index 7a9971ee181..29520d77ff4 100644 --- a/clang/test/CodeGen/decl.c +++ b/clang/test/CodeGen/decl.c @@ -1,11 +1,11 @@ // RUN: %clang_cc1 -w -emit-llvm < %s | FileCheck %s // CHECK: @test1.x = internal constant [12 x i32] [i32 1 -// CHECK: @test2.x = internal constant [13 x i32] [i32 1, +// CHECK: @test2.x = internal unnamed_addr constant [13 x i32] [i32 1, // CHECK: @test5w = global %0 { i32 2, [4 x i8] undef } // CHECK: @test5y = global %union.test5u { double 7.300000e+0{{[0]*}}1 } -// CHECK: @test6.x = internal constant %struct.SelectDest { i8 1, i8 2, i32 3, i32 0 } +// CHECK: @test6.x = internal unnamed_addr constant %struct.SelectDest { i8 1, i8 2, i32 3, i32 0 } // CHECK: @test7 = global [2 x %struct.test7s] [%struct.test7s { i32 1, i32 2 }, %struct.test7s { i32 4, i32 0 }] -- cgit v1.2.3