[PATCH] D151430: [clang][dataflow][NFC] Remove unused variable.

Martin Böhme via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 25 05:08:04 PDT 2023


mboehme created this revision.
Herald added subscribers: martong, xazax.hun.
Herald added a project: All.
mboehme requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Thanks to chapuni to pointing this out on
https://reviews.llvm.org/D151183.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D151430

Files:
  clang/unittests/Analysis/FlowSensitive/TypeErasedDataflowAnalysisTest.cpp


Index: clang/unittests/Analysis/FlowSensitive/TypeErasedDataflowAnalysisTest.cpp
===================================================================
--- clang/unittests/Analysis/FlowSensitive/TypeErasedDataflowAnalysisTest.cpp
+++ clang/unittests/Analysis/FlowSensitive/TypeErasedDataflowAnalysisTest.cpp
@@ -64,9 +64,6 @@
                     AST->getASTContext()));
   assert(Func != nullptr);
 
-  Stmt *Body = Func->getBody();
-  assert(Body != nullptr);
-
   auto CFCtx =
       llvm::cantFail(ControlFlowContext::build(*Func, AST->getASTContext()));
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151430.525549.patch
Type: text/x-patch
Size: 558 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230525/26a35a5b/attachment.bin>


More information about the cfe-commits mailing list