aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Analysis
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-03-26 21:48:17 +0000
committerTed Kremenek <kremenek@apple.com>2009-03-26 21:48:17 +0000
commitbecf8886d10c41a4605c5e66cd806492eb8b864c (patch)
tree416434f5c82cc16821f4473003c3e6ebb88fda81 /include/clang/Analysis
parentb77370289e818469250c640e1aa50b25ecffbce1 (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.h2
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 {