File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -303,7 +303,9 @@ class GlobalValue : public Constant {
303303 void setDSOLocal (bool Local) { IsDSOLocal = Local; }
304304
305305 bool isDSOLocal () const {
306- return IsDSOLocal;
306+ // Tagged globals cannot be DSO local, because the linker will put the
307+ // tagged pointers into the GOT.
308+ return IsDSOLocal && !isTagged ();
307309 }
308310
309311 bool hasPartition () const {
Original file line number Diff line number Diff line change @@ -110,10 +110,6 @@ bool GlobalValue::isInterposable() const {
110110}
111111
112112bool GlobalValue::canBenefitFromLocalAlias () const {
113- if (isTagged ()) {
114- // Cannot create local aliases to MTE tagged globals.
115- return false ;
116- }
117113 // See AsmPrinter::getSymbolPreferLocal(). For a deduplicate comdat kind,
118114 // references to a discarded local symbol from outside the group are not
119115 // allowed, so avoid the local alias.
You can’t perform that action at this time.
0 commit comments