[PATCH] D151435: [RISCV] Fix -Wunused-variable in release builds. NFCI
Alexander Kornienko via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 25 06:35:30 PDT 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG236bface848f: [RISCV] Fix -Wunused-variable in release builds. NFCI (authored by alexfh).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151435/new/
https://reviews.llvm.org/D151435
Files:
llvm/lib/Target/RISCV/RISCVExpandPseudoInsts.cpp
Index: llvm/lib/Target/RISCV/RISCVExpandPseudoInsts.cpp
===================================================================
--- llvm/lib/Target/RISCV/RISCVExpandPseudoInsts.cpp
+++ llvm/lib/Target/RISCV/RISCVExpandPseudoInsts.cpp
@@ -275,8 +275,7 @@
.add(MBBI->getOperand(2));
if (MBBI->getOperand(2).isGlobal() || MBBI->getOperand(2).isCPI()) {
// FIXME: Zdinx RV32 can not work on unaligned scalar memory.
- const auto &STI = MF->getSubtarget<RISCVSubtarget>();
- assert(!STI.enableUnalignedScalarMem());
+ assert(!MF->getSubtarget<RISCVSubtarget>().enableUnalignedScalarMem());
assert(MBBI->getOperand(2).getOffset() % 8 == 0);
MBBI->getOperand(2).setOffset(MBBI->getOperand(2).getOffset() + 4);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151435.525579.patch
Type: text/x-patch
Size: 735 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230525/ef376522/attachment.bin>
More information about the llvm-commits
mailing list