]> granicus.if.org Git - clang/commitdiff
Fix build breakage from my previous commit.
authorSteve Naroff <snaroff@apple.com>
Thu, 4 Dec 2008 19:10:03 +0000 (19:10 +0000)
committerSteve Naroff <snaroff@apple.com>
Thu, 4 Dec 2008 19:10:03 +0000 (19:10 +0000)
Will discuss with Chris...

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60545 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/ExprObjC.h

index 04b5d754d9db3ee598db35b304e40dd2780a58e1..6cf01bc3aaa668b46fe25583b96bcb330378b0de 100644 (file)
@@ -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 @@ public:
   }
   
   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); }