[llvm] 4b47c6e - Fix -Wunused-variable in release build.
Haojian Wu via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 29 15:03:42 PDT 2023
Author: Haojian Wu
Date: 2023-06-30T00:02:05+02:00
New Revision: 4b47c6e018be59e26dda5c80739feeb3e8765fd8
URL: https://github.com/llvm/llvm-project/commit/4b47c6e018be59e26dda5c80739feeb3e8765fd8
DIFF: https://github.com/llvm/llvm-project/commit/4b47c6e018be59e26dda5c80739feeb3e8765fd8.diff
LOG: Fix -Wunused-variable in release build.
Added:
Modified:
llvm/lib/Transforms/IPO/OpenMPOpt.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
index 33aa853cd04b3..d75e62804ab43 100644
--- a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
+++ b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
@@ -2414,8 +2414,7 @@ struct AAICVTrackerCallSite : AAICVTracker {
: AAICVTracker(IRP, A) {}
void initialize(Attributor &A) override {
- Function *F = getAnchorScope();
- assert(F && "Expected anchor function");
+ assert(getAnchorScope() && "Expected anchor function");
// We only initialize this AA for getters, so we need to know which ICV it
// gets.
More information about the llvm-commits
mailing list