[llvm] 4b4dcb4 - [Transforms] Fix a warning
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 12 08:51:13 PST 2023
Author: Kazu Hirata
Date: 2023-12-12T08:50:49-08:00
New Revision: 4b4dcb49887bb4a75d55c91af50f576b7fc16a74
URL: https://github.com/llvm/llvm-project/commit/4b4dcb49887bb4a75d55c91af50f576b7fc16a74
DIFF: https://github.com/llvm/llvm-project/commit/4b4dcb49887bb4a75d55c91af50f576b7fc16a74.diff
LOG: [Transforms] Fix a warning
This patch fixes:
llvm/lib/Transforms/Scalar/SROA.cpp:4855:9: error: unused variable
'NewAssign' [-Werror,-Wunused-variable]
Added:
Modified:
llvm/lib/Transforms/Scalar/SROA.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/SROA.cpp b/llvm/lib/Transforms/Scalar/SROA.cpp
index b0285dd7de0a5e..24da26c9f0f253 100644
--- a/llvm/lib/Transforms/Scalar/SROA.cpp
+++ b/llvm/lib/Transforms/Scalar/SROA.cpp
@@ -4856,6 +4856,7 @@ static void insertNewDbgInst(DIBuilder &DIB, DbgAssignIntrinsic *Orig,
NewAddr, Orig->getValue(), Orig->getVariable(), NewFragmentExpr, NewAddr,
Orig->getAddressExpression(), Orig->getDebugLoc());
LLVM_DEBUG(dbgs() << "Created new assign intrinsic: " << *NewAssign << "\n");
+ (void)NewAssign;
}
static void insertNewDbgInst(DIBuilder &DIB, DPValue *Orig, AllocaInst *NewAddr,
DIExpression *NewFragmentExpr,
More information about the llvm-commits
mailing list