[PATCH] D92852: [NFC] Reduce include files dependency and AA header cleanup (part 2).

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 16 03:46:10 PST 2020


RKSimon accepted this revision.
RKSimon added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: llvm/lib/Analysis/AliasAnalysis.cpp:685
+  }
+}
+
----------------
dfukalov wrote:
> RKSimon wrote:
> > This should probably be pulled out too
> It uses `dyn_cast<CallBase>(I)` so clang-tidy reports //incomplete type 'llvm::CallBase' named in nested name specifier// if the function definition is in header. This is result of removing include Instructions.h from AliasAnalysis.h.
> 
> Actually there is one more same clang-tidy report on `isa<AllocaInst>` in MemorySSA.h that includes AliasAnalysis.h (and so included Instructions.h through it). I thought to fix it the same way - moving function with `isa<AllocaInst>` to MemorySSA.cpp
> 
> Or should I leave include Instructions.h in AliasAnalysis.h?
No, moving into a cpp file make sense - sorry for the noise.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D92852/new/

https://reviews.llvm.org/D92852



More information about the llvm-commits mailing list