[PATCH] D92852: [NFC] Reduce include files dependency and AA header cleanup (part 2).
Daniil Fukalov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 8 11:33:21 PST 2020
dfukalov added inline comments.
================
Comment at: llvm/include/llvm/Analysis/AliasAnalysis.h:800
case Instruction::Invoke:
- return getModRefInfo((const InvokeInst *)I, Loc, AAQIP);
+ return getModRefInfo((const CallBase *)I, Loc, AAQIP);
case Instruction::CatchPad:
----------------
RKSimon wrote:
> Is this necessary? It doesn't seem to match the pattern used for all the other Instruction types.
Actually there are no `getModRefInfo(CallInst *` nor `getModRefInfo(InvokeInst *` but the only `getModRefInfo(CallBase *`.
There were two implicit casts from `CallInst` and `InvokeInst` in the calls to their base `CallBase` and it was masked by included Instructions.h.
My thought was we use explicit cast here so I decided to refine this calls.
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