aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2021-07-28 05:22:45 +0000
committerMehdi Amini <joker.eph@gmail.com>2021-07-28 05:38:43 +0000
commitb349d4c5e1852091aad97d3750e286493cac7178 (patch)
treeca8c93f2eb63f49c6ba63818f600e372cb07dfff /llvm/lib/IR/Module.cpp
parent08c766a7318ab37bf1d77e0c683cd3b00e700877 (diff)
downloadllvm-b349d4c5e1852091aad97d3750e286493cac7178.zip
llvm-b349d4c5e1852091aad97d3750e286493cac7178.tar.gz
llvm-b349d4c5e1852091aad97d3750e286493cac7178.tar.bz2
Emit strong definition for TypeID storage in Op/Type/Attributes definition
By making an explicit template specialization for the TypeID provided by these classes, the compiler will not emit an inline weak definition and rely on the linker to unique it. Instead a single definition will be emitted in the C++ file alongside the implementation for these classes. That will turn into a linker error what is now a hard-to-debug runtime behavior where instances of the same class may be using a different TypeID inside of different DSOs. Differential Revision: https://reviews.llvm.org/D105903
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions