diff options
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Analysis/BugReporter.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/lib/Analysis/BugReporter.cpp b/clang/lib/Analysis/BugReporter.cpp index e2d98b0cf60..8ee530c425a 100644 --- a/clang/lib/Analysis/BugReporter.cpp +++ b/clang/lib/Analysis/BugReporter.cpp @@ -448,7 +448,12 @@ bool BugTypeCacheLocation::isCached(BugReport& R) { // warning for the same error type that occurs at the same program // location but along a different path. - void* p = N->getLocation().getRawData(); + return isCached(N->getLocation()); +} + +bool BugTypeCacheLocation::isCached(ProgramPoint P) { + + void* p = P.getRawData(); if (CachedErrors.count(p)) return true; |

