[llvm] [llvm][aarch64] Add support for the MS qualifiers __ptr32, __ptr64, _sptr, __uptr (PR #112793)
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 29 13:46:19 PST 2025
================
@@ -68,8 +68,7 @@ class AArch64TargetMachine : public CodeGenTargetMachineImpl {
/// Returns true if a cast between SrcAS and DestAS is a noop.
bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const override {
- // Addrspacecasts are always noops.
- return true;
+ return (getPointerSize(SrcAS) == getPointerSize(DestAS));
----------------
efriedma-quic wrote:
Extra parentheses.
https://github.com/llvm/llvm-project/pull/112793
More information about the llvm-commits
mailing list