[llvm] a6161a2 - [Instrumentation] Remove unused variable 'DL' in MemProfiler.cpp (NFC)
Jie Fu via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 24 18:12:03 PST 2024
Author: Jie Fu
Date: 2024-01-25T10:11:17+08:00
New Revision: a6161a2524c5146a982abc4d580a61f95344edbf
URL: https://github.com/llvm/llvm-project/commit/a6161a2524c5146a982abc4d580a61f95344edbf
DIFF: https://github.com/llvm/llvm-project/commit/a6161a2524c5146a982abc4d580a61f95344edbf.diff
LOG: [Instrumentation] Remove unused variable 'DL' in MemProfiler.cpp (NFC)
llvm-project/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp:375:21:
error: unused variable 'DL' [-Werror,-Wunused-variable]
const DataLayout &DL = I->getModule()->getDataLayout();
^
1 error generated.
Added:
Modified:
llvm/lib/Transforms/Instrumentation/MemProfiler.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp b/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp
index 8cfcf11f80b0bb9..5123ed771c9d638 100644
--- a/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp
+++ b/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp
@@ -372,7 +372,6 @@ MemProfiler::isInterestingMemoryAccess(Instruction *I) const {
return std::nullopt;
}
- const DataLayout &DL = I->getModule()->getDataLayout();
return Access;
}
More information about the llvm-commits
mailing list