Previously all entries in global_ctors had to have the void()* type and
we'd skip evaluating bitcasted functions. With opaque pointers we may
see the function directly.
Fixes #55147.
Paths
| Differential D124553
[OpaquePtr][GlobalOpt] Don't attempt to evaluate global constructors with arguments ClosedPublic Authored by aeubanks on Apr 27 2022, 1:48 PM.
Details
Summary Previously all entries in global_ctors had to have the void()* type and Fixes #55147.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Apr 27 2022, 2:13 PM Closed by commit rG4e65291837aa: [OpaquePtr][GlobalOpt] Don't attempt to evaluate global constructors with… (authored by aeubanks). · Explain WhyApr 27 2022, 7:02 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 425602 llvm/lib/Transforms/Utils/CtorUtils.cpp
llvm/lib/Transforms/Utils/Evaluator.cpp
llvm/test/Transforms/GlobalOpt/global-constructor-opaque-ptr.ll
|