================ @@ -7949,7 +7949,8 @@ NamedDecl *Sema::ActOnVariableDeclarator( } if (!R->isIntegralType(Context) && !R->isPointerType()) { - Diag(D.getBeginLoc(), diag::err_asm_bad_register_type); + Diag(TInfo->getTypeLoc().getBeginLoc(), + diag::err_asm_bad_register_type); ---------------- Sirraide wrote:
Maybe also add `<< TInfo->getTypeLoc().getSourceRange()` https://github.com/llvm/llvm-project/pull/110239 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits