diff options
author | Alexis Hunt <alercah@gmail.com> | 2010-01-24 03:04:27 +0000 |
---|---|---|
committer | Alexis Hunt <alercah@gmail.com> | 2010-01-24 03:04:27 +0000 |
commit | aecc45cb3c836d2dd2b6cc0df517b213f385c75d (patch) | |
tree | b54f9e063ba75193b9735f8545d42e89780ecfeb /clang/test/CodeGenCXX/deferred-global-init.cpp | |
parent | 62ebf25f44b9a823549ed977040b7aa55793d7e4 (diff) | |
download | bcm5719-llvm-aecc45cb3c836d2dd2b6cc0df517b213f385c75d.tar.gz bcm5719-llvm-aecc45cb3c836d2dd2b6cc0df517b213f385c75d.zip |
Mangle static variables with an extra name to distinguish them from non-static variables in the same TU.
Fixes PR5966 for real this time; also reverts r92911, which had a incorrect fix.
llvm-svn: 94352
Diffstat (limited to 'clang/test/CodeGenCXX/deferred-global-init.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/deferred-global-init.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/deferred-global-init.cpp b/clang/test/CodeGenCXX/deferred-global-init.cpp index 57014790554..802042dd8b9 100644 --- a/clang/test/CodeGenCXX/deferred-global-init.cpp +++ b/clang/test/CodeGenCXX/deferred-global-init.cpp @@ -5,7 +5,7 @@ extern void* foo; static void* const a = foo; void* bar() { return a; } -// CHECK: @a = internal global i8* null +// CHECK: @_ZL1a = internal global i8* null // CHECK: define internal void @__cxx_global_var_init // CHECK: load i8** @foo |