aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaExprCXX.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2012-01-23 06:08:16 +0000
committerNico Weber <nicolasweber@gmx.de>2012-01-23 06:08:16 +0000
commit2d757ec0e6cbd9aab4bcea7a0a83d71f5080c736 (patch)
treedf324347467e0b8e4578a56bfdeed1f5a267ca2f /lib/Sema/SemaExprCXX.cpp
parentdf1be86ef5f5d55fc23b2339ee76e076424d9ba0 (diff)
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
Diffstat (limited to 'lib/Sema/SemaExprCXX.cpp')
-rw-r--r--lib/Sema/SemaExprCXX.cpp2
1 files changed, 1 insertions, 1 deletions
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();