From: Nico Weber Date: Mon, 23 Jan 2012 06:08:16 +0000 (+0000) Subject: Add a source range to the ms path. Spotted by David Blaikie. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2d757ec0e6cbd9aab4bcea7a0a83d71f5080c736;p=clang Add a source range to the ms path. Spotted by David Blaikie. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148683 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaExprCXX.cpp b/lib/Sema/SemaExprCXX.cpp index d3bbc14728..3d155a5cf3 100644 --- a/lib/Sema/SemaExprCXX.cpp +++ b/lib/Sema/SemaExprCXX.cpp @@ -4381,7 +4381,7 @@ ExprResult Sema::BuildPseudoDestructorExpr(Expr *Base, if (!ObjectType->isDependentType() && !ObjectType->isScalarType()) { if (getLangOptions().MicrosoftMode && ObjectType->isVoidType()) - Diag(OpLoc, diag::ext_pseudo_dtor_on_void); + Diag(OpLoc, diag::ext_pseudo_dtor_on_void) << Base->getSourceRange(); else Diag(OpLoc, diag::err_pseudo_dtor_base_not_scalar) << ObjectType << Base->getSourceRange();