diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-03-26 23:12:02 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-03-26 23:12:02 +0000 |
commit | 6f00204d44dfab30f55c19b744e3ece9f229043f (patch) | |
tree | 13b4673619ba88e58adec67d253ace5040feea3c /lib/Analysis/PathDiagnostic.cpp | |
parent | becf8886d10c41a4605c5e66cd806492eb8b864c (diff) |
- Add class PathDiagosticLocationPair.
- Have PathDiagnosticControlFlowPiece use a vector of PathDiagnosticLocationPairs to represent transitions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67786 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/PathDiagnostic.cpp')
-rw-r--r-- | lib/Analysis/PathDiagnostic.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/PathDiagnostic.cpp b/lib/Analysis/PathDiagnostic.cpp index dd9a0a8f46..02fe1658ad 100644 --- a/lib/Analysis/PathDiagnostic.cpp +++ b/lib/Analysis/PathDiagnostic.cpp @@ -147,10 +147,10 @@ FullSourceLoc PathDiagnosticLocation::asLocation() const { case Range: break; case Statement: - return FullSourceLoc(S->getLocStart(), const_cast<SourceManager&>(SM)); + return FullSourceLoc(S->getLocStart(), const_cast<SourceManager&>(*SM)); } - return FullSourceLoc(R.getBegin(), const_cast<SourceManager&>(SM)); + return FullSourceLoc(R.getBegin(), const_cast<SourceManager&>(*SM)); } SourceRange PathDiagnosticLocation::asRange() const { |