[llvm] 4343c68 - Fix: [DebugInfo] Support DIArgList in DbgVariableIntrinsic

Stephen Tozer via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 8 06:57:28 PST 2021


Author: Stephen Tozer
Date: 2021-03-08T14:57:11Z
New Revision: 4343c68fa3ffb2d84a7f18af047d1d24d2062bd8

URL: https://github.com/llvm/llvm-project/commit/4343c68fa3ffb2d84a7f18af047d1d24d2062bd8
DIFF: https://github.com/llvm/llvm-project/commit/4343c68fa3ffb2d84a7f18af047d1d24d2062bd8.diff

LOG: Fix: [DebugInfo] Support DIArgList in DbgVariableIntrinsic

This patch removed the only use of a lambda capture, triggering an error
on `-Werror -Wunused-lambda-capture` builds.

Added: 
    

Modified: 
    llvm/lib/Transforms/InstCombine/InstructionCombining.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
index 62f761995257..d7ff12dcfa65 100644
--- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
@@ -3578,7 +3578,7 @@ static bool TryToSinkInstruction(Instruction *I, BasicBlock *DestBlock) {
 
   // Update the arguments of a dbg.declare instruction, so that it
   // does not point into a sunk instruction.
-  auto updateDbgDeclare = [&I](DbgVariableIntrinsic *DII) {
+  auto updateDbgDeclare = [](DbgVariableIntrinsic *DII) {
     if (!isa<DbgDeclareInst>(DII))
       return false;
 


        


More information about the llvm-commits mailing list