aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2008-12-04 19:10:03 +0000
committerSteve Naroff <snaroff@apple.com>2008-12-04 19:10:03 +0000
commit3fa1fff997eb9119b922aa18934d0a5f7364a1d7 (patch)
tree54e4424eafcfd35f690433fc4b5c9ffb5bb56f9c
parenta96ac060debe3b83caa5c4ddba0c44a44b4499fe (diff)
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
-rw-r--r--include/clang/AST/ExprObjC.h5
1 files changed, 1 insertions, 4 deletions
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<Expr>(Base); }
Expr *getBase() { return cast<Expr>(Base); }