[cfe-commits] r148683 - /cfe/trunk/lib/Sema/SemaExprCXX.cpp

Nico Weber nicolasweber at gmx.de
Sun Jan 22 22:08:17 PST 2012


Author: nico
Date: Mon Jan 23 00:08:16 2012
New Revision: 148683

URL: http://llvm.org/viewvc/llvm-project?rev=148683&view=rev
Log:
Add a source range to the ms path. Spotted by David Blaikie.


Modified:
    cfe/trunk/lib/Sema/SemaExprCXX.cpp

Modified: cfe/trunk/lib/Sema/SemaExprCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExprCXX.cpp?rev=148683&r1=148682&r2=148683&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExprCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExprCXX.cpp Mon Jan 23 00:08:16 2012
@@ -4381,7 +4381,7 @@
 
   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();





More information about the cfe-commits mailing list