[all-commits] [llvm/llvm-project] b31f41: [Clang] Support a user-defined __dso_handle
Andrew Savonichev via All-commits
all-commits at lists.llvm.org
Mon Jun 7 02:55:34 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b31f41e78b2722785f3df1da0d77dfcd68125d15
https://github.com/llvm/llvm-project/commit/b31f41e78b2722785f3df1da0d77dfcd68125d15
Author: Andrew Savonichev <andrew.savonichev at gmail.com>
Date: 2021-06-07 (Mon, 07 Jun 2021)
Changed paths:
M clang/lib/CodeGen/CodeGenModule.cpp
A clang/test/CodeGenCXX/dso-handle-custom.cpp
Log Message:
-----------
[Clang] Support a user-defined __dso_handle
This fixes PR49198: Wrong usage of __dso_handle in user code leads to
a compiler crash.
When Init is an address of the global itself, we need to track it
across RAUW. Otherwise the initializer can be destroyed if the global
is replaced.
Differential Revision: https://reviews.llvm.org/D101156
More information about the All-commits
mailing list