AaronBallman wrote: > If this were a bug, I suspect it would have been reported. Most likely, > `dyn_cast_or_null<VarDecl>(Entity.getDecl());` is never null, and could be > replaced by `cast`? Did you try that?
`getDecl()` can definitely return null: https://github.com/llvm/llvm-project/blob/e4060d3beab3b525b49baaa15484e3c595740a2f/clang/lib/Sema/SemaInit.cpp#L3728 https://github.com/llvm/llvm-project/pull/143067 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits