diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2018-03-14 18:14:46 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2018-03-14 18:14:46 +0000 |
commit | ac11dcec21c6ff3761acdcf844e1cd6f377169ee (patch) | |
tree | 418c05450be60a4e5f4508f0e73d3b401a7a7f6d /test/CodeGenCXX/windows-itanium-exceptions.cpp | |
parent | d90fea180890aeb9fde1e2c57a00f5005896ef4b (diff) |
Set dso_local on external rtti GVs.
In this particular case it would be possible to just add an else with
CGM.setDSOLocal(GV), but it seems better to have as many callers as
possible just call setGVProperties so that we can centralize the logic
there.
This patch then makes setGVProperties able to handle null Decls.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@327543 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/windows-itanium-exceptions.cpp')
-rw-r--r-- | test/CodeGenCXX/windows-itanium-exceptions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGenCXX/windows-itanium-exceptions.cpp b/test/CodeGenCXX/windows-itanium-exceptions.cpp index b2c8707efc..1bca4e8917 100644 --- a/test/CodeGenCXX/windows-itanium-exceptions.cpp +++ b/test/CodeGenCXX/windows-itanium-exceptions.cpp @@ -10,7 +10,7 @@ void attempt() { try { except(); } catch (...) { } } -// CHECK: @_ZTIi = external constant i8* +// CHECK: @_ZTIi = external dso_local constant i8* // CHECK: define {{.*}}void @_Z6exceptv() {{.*}} { // CHECK: %exception = call {{.*}}i8* @__cxa_allocate_exception(i32 4) |