diff options
author | Alex Bradbury <asb@igalia.com> | 2022-08-01 10:08:17 +0100 |
---|---|---|
committer | Alex Bradbury <asb@igalia.com> | 2022-08-01 10:11:16 +0100 |
commit | 9bf2d8cbbe0e42a772d572e09f636e34dde357d6 (patch) | |
tree | 9351915156d9b80c0909c51b2a4ebf60585ed4f3 /llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp | |
parent | 3f3bbd737074497f4abe3f9d7785399b04f62168 (diff) | |
download | llvm-9bf2d8cbbe0e42a772d572e09f636e34dde357d6.zip llvm-9bf2d8cbbe0e42a772d572e09f636e34dde357d6.tar.gz llvm-9bf2d8cbbe0e42a772d572e09f636e34dde357d6.tar.bz2 |
[NFC] Use AllocaInst's getAddressSpace helper
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp index 01baa3d..f73b781 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp @@ -62,8 +62,7 @@ WebAssemblyFrameLowering::getLocalForStackObject(MachineFunction &MF, // If not allocated in the object address space, this object will be in // linear memory. const AllocaInst *AI = MFI.getObjectAllocation(FrameIndex); - if (!AI || - !WebAssembly::isWasmVarAddressSpace(AI->getType()->getAddressSpace())) + if (!AI || !WebAssembly::isWasmVarAddressSpace(AI->getAddressSpace())) return None; // Otherwise, allocate this object in the named value stack, outside of linear |