[all-commits] [llvm/llvm-project] b81244: Add LLVM_ATTRIBUTE_USED to fix problems which coul...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Mon Apr 26 13:32:01 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b81244fa4ff9188df22847c6e11e050892292002
https://github.com/llvm/llvm-project/commit/b81244fa4ff9188df22847c6e11e050892292002
Author: Fangrui Song <i at maskray.me>
Date: 2021-04-26 (Mon, 26 Apr 2021)
Changed paths:
M llvm/lib/Support/BuryPointer.cpp
M llvm/lib/Support/Unix/Signals.inc
Log Message:
-----------
Add LLVM_ATTRIBUTE_USED to fix problems which could be exposed by aggressive global pointer variable removal
Note to BuryPointer.cpp:GraveYard. 'unused' cannot prevent (1) dead store
elimination and (2) removal of the global pointer variable (D69428) but 'used' can.
Discovered when comparing link maps between HEAD+D69428 and HEAD.
Reviewed By: lattner
Differential Revision: https://reviews.llvm.org/D101217
More information about the All-commits
mailing list