[PATCH] D108482: [Clang] Fix instantiation of OpaqueValueExprs (Bug #45964)
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 6 05:10:46 PDT 2021
aaron.ballman accepted this revision.
aaron.ballman added a comment.
LGTM aside from a nit, but please give some time for @rjmccall to review as well in case he spots something I've missed.
================
Comment at: clang/lib/Sema/TreeTransform.h:3844
+ if (auto *AIL = dyn_cast<ArrayInitLoopExpr>(Init)) {
+ auto *OVE = cast<OpaqueValueExpr>(AIL->getCommonExpr());
+ Init = OVE->getSourceExpr();
----------------
No need for the cast, this function already returns that type.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108482/new/
https://reviews.llvm.org/D108482
More information about the cfe-commits
mailing list