[clang] [clang][Sema] Bad register variable type error should point to the type (PR #110239)
David Spickett via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 7 06:10:42 PDT 2024
================
@@ -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);
----------------
DavidSpickett wrote:
Done, thanks!
https://github.com/llvm/llvm-project/pull/110239
More information about the cfe-commits
mailing list