Add a source range to the ms path. Spotted by David Blaikie.

llvm-svn: 148683
This commit is contained in:
Nico Weber 2012-01-23 06:08:16 +00:00
parent 5882927d7a
commit 4bc649943f
1 changed files with 1 additions and 1 deletions

View File

@ -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();