[PATCH] D98431: [AArch64] Fix -Wunused-but-set-variable in GCC non-debug build
Simon Wallis via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 11 09:55:06 PST 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb68bae6a94fb: [AArch64] Fix -Wunused-but-set-variable in GCC non-debug build (authored by simonwallis2).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98431/new/
https://reviews.llvm.org/D98431
Files:
llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
Index: llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
===================================================================
--- llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
+++ llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
@@ -884,8 +884,8 @@
#ifndef NDEBUG
ValidCopy = KnownValid || isValidCopy(I, DstRegBank, MRI, TRI, RBI);
assert(ValidCopy && "Invalid copy.");
- (void)KnownValid;
#endif
+ (void)KnownValid;
return ValidCopy;
};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98431.330005.patch
Type: text/x-patch
Size: 504 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210311/99413439/attachment.bin>
More information about the llvm-commits
mailing list