Revert D142708 "[NFC] Transition GlobalObject alignment from MaybeAlign to Align"
This is breaking the build bots. e.g.,
https://lab.llvm.org/buildbot/#/builders/121/builds/27549
This reverts commit 6717efe74d.
This commit is contained in:
@@ -2306,7 +2306,7 @@ bool ModuleAddressSanitizer::InstrumentGlobals(IRBuilder<> &IRB, Module &M,
|
||||
G->getThreadLocalMode(), G->getAddressSpace());
|
||||
NewGlobal->copyAttributesFrom(G);
|
||||
NewGlobal->setComdat(G->getComdat());
|
||||
NewGlobal->setAlignment(Align(getMinRedzoneSizeForGlobal()));
|
||||
NewGlobal->setAlignment(MaybeAlign(getMinRedzoneSizeForGlobal()));
|
||||
// Don't fold globals with redzones. ODR violation detector and redzone
|
||||
// poisoning implicitly creates a dependence on the global's address, so it
|
||||
// is no longer valid for it to be marked unnamed_addr.
|
||||
|
||||
Reference in New Issue
Block a user