aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/Module.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2022-03-03 15:41:06 +0100
committerNikita Popov <npopov@redhat.com>2022-03-07 10:02:45 +0100
commita9b03d9e2e3888ad08f9f0294c6e6bec43d7c884 (patch)
tree62ab45b48fbae3f97a70e2b9dc3970545b4ef5c6 /clang/lib/Basic/Module.cpp
parent43b638241aa8c114e5a5b44b38630af43ca9f84f (diff)
downloadllvm-a9b03d9e2e3888ad08f9f0294c6e6bec43d7c884.zip
llvm-a9b03d9e2e3888ad08f9f0294c6e6bec43d7c884.tar.gz
llvm-a9b03d9e2e3888ad08f9f0294c6e6bec43d7c884.tar.bz2
[Attributor] Remove function pointer restriction for AAAlign
This check is not compatible with opaque pointers. We can avoid it by adjusting the getPointerAlignment() implementation to avoid creating unnecessary ptrtoint expressions for bitcasted pointers. The code already uses OnlyIfReduced to not create an expression if it does not simplify, and this makes sure that folding a bitcast and ptrtoint into a ptrtoint doesn't count as a simplification. Differential Revision: https://reviews.llvm.org/D120904
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions