From: Steve Naroff Date: Thu, 4 Dec 2008 19:10:03 +0000 (+0000) Subject: Fix build breakage from my previous commit. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3fa1fff997eb9119b922aa18934d0a5f7364a1d7;p=clang Fix build breakage from my previous commit. Will discuss with Chris... git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60545 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/ExprObjC.h b/include/clang/AST/ExprObjC.h index 04b5d754d9..6cf01bc3aa 100644 --- a/include/clang/AST/ExprObjC.h +++ b/include/clang/AST/ExprObjC.h @@ -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(Base); } Expr *getBase() { return cast(Base); }