[llvm] 2a1f871 - [NVPTX] Fix compiler warning in NDEBUG build [NFC]
Mikael Holmen via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 8 04:22:01 PDT 2021
Author: Mikael Holmen
Date: 2021-04-08T13:21:21+02:00
New Revision: 2a1f87167cc01261e1164772ba58418fea58326b
URL: https://github.com/llvm/llvm-project/commit/2a1f87167cc01261e1164772ba58418fea58326b
DIFF: https://github.com/llvm/llvm-project/commit/2a1f87167cc01261e1164772ba58418fea58326b.diff
LOG: [NVPTX] Fix compiler warning in NDEBUG build [NFC]
Without the fix we get
../lib/Target/NVPTX/NVPTXLowerArgs.cpp:236:24: error: lambda capture 'Arg' is not used [-Werror,-Wunused-lambda-capture]
auto IsALoadChain = [Arg](Value *Start) {
^~~
1 error generated.
Added:
Modified:
llvm/lib/Target/NVPTX/NVPTXLowerArgs.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/NVPTX/NVPTXLowerArgs.cpp b/llvm/lib/Target/NVPTX/NVPTXLowerArgs.cpp
index b27e8a9cd784..558f2d3ca690 100644
--- a/llvm/lib/Target/NVPTX/NVPTXLowerArgs.cpp
+++ b/llvm/lib/Target/NVPTX/NVPTXLowerArgs.cpp
@@ -251,6 +251,7 @@ void NVPTXLowerArgs::handleByValParam(Argument *Arg) {
if (!IsALoadChainInstr(V)) {
LLVM_DEBUG(dbgs() << "Need a copy of " << *Arg << " because of " << *V
<< "\n");
+ (void)Arg;
return false;
}
if (!isa<LoadInst>(V))
More information about the llvm-commits
mailing list