Removed duplicate logic.

llvm-svn: 171218
This commit is contained in:
Erik Verbruggen 2012-12-29 11:27:03 +00:00
parent b3d04ede8c
commit 3f27d4e05a
1 changed files with 1 additions and 3 deletions

View File

@ -521,9 +521,7 @@ public:
SourceLocation getEndLoc() const;
/// getSourceRange - The range of the declaration name.
SourceRange getSourceRange() const LLVM_READONLY {
SourceLocation BeginLoc = getBeginLoc();
SourceLocation EndLoc = getEndLoc();
return SourceRange(BeginLoc, EndLoc.isValid() ? EndLoc : BeginLoc);
return SourceRange(getLocStart(), getLocEnd());
}
SourceLocation getLocStart() const LLVM_READONLY {
return getBeginLoc();