[clang] 49946df - [clang][dataflow][NFC] Remove unused variable.
Martin Braenne via cfe-commits
cfe-commits at lists.llvm.org
Thu May 25 05:10:02 PDT 2023
Author: Martin Braenne
Date: 2023-05-25T12:09:52Z
New Revision: 49946df8211e9d36f0b3755e64b55bc28c0a4247
URL: https://github.com/llvm/llvm-project/commit/49946df8211e9d36f0b3755e64b55bc28c0a4247
DIFF: https://github.com/llvm/llvm-project/commit/49946df8211e9d36f0b3755e64b55bc28c0a4247.diff
LOG: [clang][dataflow][NFC] Remove unused variable.
Thanks to chapuni to pointing this out on
https://reviews.llvm.org/D151183.
Differential Revision: https://reviews.llvm.org/D151430
Added:
Modified:
clang/unittests/Analysis/FlowSensitive/TypeErasedDataflowAnalysisTest.cpp
Removed:
################################################################################
diff --git a/clang/unittests/Analysis/FlowSensitive/TypeErasedDataflowAnalysisTest.cpp b/clang/unittests/Analysis/FlowSensitive/TypeErasedDataflowAnalysisTest.cpp
index 84b10c87f6b1..1d94b69cfce8 100644
--- a/clang/unittests/Analysis/FlowSensitive/TypeErasedDataflowAnalysisTest.cpp
+++ b/clang/unittests/Analysis/FlowSensitive/TypeErasedDataflowAnalysisTest.cpp
@@ -64,9 +64,6 @@ runAnalysis(llvm::StringRef Code, AnalysisT (*MakeAnalysis)(ASTContext &)) {
AST->getASTContext()));
assert(Func != nullptr);
- Stmt *Body = Func->getBody();
- assert(Body != nullptr);
-
auto CFCtx =
llvm::cantFail(ControlFlowContext::build(*Func, AST->getASTContext()));
More information about the cfe-commits
mailing list