[cfe-commits] r60545 - /cfe/trunk/include/clang/AST/ExprObjC.h

Steve Naroff snaroff at apple.com
Thu Dec 4 11:10:04 PST 2008


Author: snaroff
Date: Thu Dec  4 13:10:03 2008
New Revision: 60545

URL: http://llvm.org/viewvc/llvm-project?rev=60545&view=rev
Log:
Fix build breakage from my previous commit.

Will discuss with Chris...

Modified:
    cfe/trunk/include/clang/AST/ExprObjC.h

Modified: cfe/trunk/include/clang/AST/ExprObjC.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/ExprObjC.h?rev=60545&r1=60544&r2=60545&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/ExprObjC.h (original)
+++ cfe/trunk/include/clang/AST/ExprObjC.h Thu Dec  4 13:10:03 2008
@@ -15,7 +15,6 @@
 #define LLVM_CLANG_AST_EXPROBJC_H
 
 #include "clang/AST/Expr.h"
-#include "clang/AST/DeclObjC.h"
 #include "clang/Basic/IdentifierTable.h"
 
 namespace clang {
@@ -214,9 +213,7 @@
   }
   
   virtual SourceRange getSourceRange() const {
-    unsigned IDLen = AsProperty->getIdentifier()->getLength();
-    return SourceRange(getBase()->getLocStart(), 
-                       IdLoc.getFileLocWithOffset(IDLen-1)); 
+    return SourceRange(getBase()->getLocStart(), IdLoc);
   }
   const Expr *getBase() const { return cast<Expr>(Base); }
   Expr *getBase() { return cast<Expr>(Base); }





More information about the cfe-commits mailing list