diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-03-26 21:48:17 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-03-26 21:48:17 +0000 |
commit | becf8886d10c41a4605c5e66cd806492eb8b864c (patch) | |
tree | 416434f5c82cc16821f4473003c3e6ebb88fda81 /include/clang/Analysis | |
parent | b77370289e818469250c640e1aa50b25ecffbce1 (diff) |
Implement PathDiagnosticLocation::asRange() and PathDiagnosticLocation::asStmt().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67777 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Analysis')
-rw-r--r-- | include/clang/Analysis/PathDiagnostic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/Analysis/PathDiagnostic.h b/include/clang/Analysis/PathDiagnostic.h index f647be9d6d..1481e25bbd 100644 --- a/include/clang/Analysis/PathDiagnostic.h +++ b/include/clang/Analysis/PathDiagnostic.h @@ -67,7 +67,7 @@ public: FullSourceLoc asLocation() const; SourceRange asRange() const; - const Stmt *asStmt() const; + const Stmt *asStmt() const { return S ? S : 0; } }; class PathDiagnostic { |