r178289 - [sema] Remove unused variable from r178283

Reid Kleckner reid at kleckner.net
Thu Mar 28 13:54:13 PDT 2013


Author: rnk
Date: Thu Mar 28 15:54:13 2013
New Revision: 178289

URL: http://llvm.org/viewvc/llvm-project?rev=178289&view=rev
Log:
[sema] Remove unused variable from r178283

Wouldn't it be cool if we had a compiler for Windows that could warn
about these things?

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

Modified: cfe/trunk/lib/Sema/SemaType.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaType.cpp?rev=178289&r1=178288&r2=178289&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaType.cpp (original)
+++ cfe/trunk/lib/Sema/SemaType.cpp Thu Mar 28 15:54:13 2013
@@ -1738,7 +1738,6 @@ QualType Sema::BuildMemberPointerType(Qu
       // Otherwise we may disagree about the size at different points in the TU.
       // FIXME: MSVC picks a model on the first use that needs to know the size,
       // rather than on the first mention of the type, e.g. typedefs.
-      SourceRange DeclRange = RD->getSourceRange();
       if (RequireCompleteType(Loc, Class, 0) && !RD->isBeingDefined()) {
         // We know it doesn't have an attribute and it's incomplete, so use the
         // unspecified inheritance model.  If we're in the record body, we can





More information about the cfe-commits mailing list