[PATCH] D58035: [clang/DIVar] Emit flag for params that have unchanged values

Djordje Todorovic via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 16 04:54:26 PDT 2019


djtodoro marked an inline comment as done.
djtodoro added inline comments.


================
Comment at: lib/CodeGen/CGDebugInfo.cpp:3885
+  if (ArgNo) {
+    auto *PD = dyn_cast<ParmVarDecl>(VD);
+    ParmCache[PD].reset(D);
----------------
aprantl wrote:
> A `dyn_cast` followed by an unconditional use seems strange. I would expect either a `cast` or an `if (PD)` check.
Yes, thanks for this!


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

https://reviews.llvm.org/D58035





More information about the cfe-commits mailing list