diff options
author | David Majnemer <david.majnemer@gmail.com> | 2015-05-07 06:15:46 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2015-05-07 06:15:46 +0000 |
commit | 8354eeed19e721f25cebba17f4af2470ffebc495 (patch) | |
tree | 3404dc7eb19a60acc6b4e5fb64833d85fc89b599 /clang/test/CodeGenCXX/microsoft-abi-static-initializers.cpp | |
parent | cdc22a889e4e4e22e72be01d217ddcc0ad063b43 (diff) | |
download | bcm5719-llvm-8354eeed19e721f25cebba17f4af2470ffebc495.tar.gz bcm5719-llvm-8354eeed19e721f25cebba17f4af2470ffebc495.zip |
[MS ABI] Implement thread-safe initialization using the MSVC 2015 ABI
The MSVC 2015 ABI utilizes a rather straightforward adaptation of the
algorithm found in the appendix of N2382. While we are here, implement
support for emitting cleanups if an exception is thrown while we are
intitializing a static local variable.
llvm-svn: 236697
Diffstat (limited to 'clang/test/CodeGenCXX/microsoft-abi-static-initializers.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/microsoft-abi-static-initializers.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/microsoft-abi-static-initializers.cpp b/clang/test/CodeGenCXX/microsoft-abi-static-initializers.cpp index 97d4b5bfc7e..5094623d7d0 100644 --- a/clang/test/CodeGenCXX/microsoft-abi-static-initializers.cpp +++ b/clang/test/CodeGenCXX/microsoft-abi-static-initializers.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fms-extensions -emit-llvm %s -o - -mconstructor-aliases -triple=i386-pc-win32 | FileCheck %s +// RUN: %clang_cc1 -fms-extensions -fno-threadsafe-statics -emit-llvm %s -o - -mconstructor-aliases -triple=i386-pc-win32 | FileCheck %s // CHECK: @llvm.global_ctors = appending global [5 x { i32, void ()*, i8* }] [ // CHECK: { i32, void ()*, i8* } { i32 65535, void ()* @"\01??__Eselectany1@@YAXXZ", i8* getelementptr inbounds (%struct.S, %struct.S* @"\01?selectany1@@3US@@A", i32 0, i32 0) }, |