diff options
author | Gabor Horvath <xazax.hun@gmail.com> | 2015-12-01 09:00:41 +0000 |
---|---|---|
committer | Gabor Horvath <xazax.hun@gmail.com> | 2015-12-01 09:00:41 +0000 |
commit | fe2c0ff942e8c9f407b2e669d366eb855ba0e127 (patch) | |
tree | 84ee9c786953ecccbed0a18c36864ad444d42650 /clang/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp | |
parent | b4a09278533a26371d89572f376bb75ff605240b (diff) | |
download | bcm5719-llvm-fe2c0ff942e8c9f407b2e669d366eb855ba0e127.tar.gz bcm5719-llvm-fe2c0ff942e8c9f407b2e669d366eb855ba0e127.zip |
[analyzer] Fix IssueHash generation.
Differential Revision: http://reviews.llvm.org/D14919
Original patch by: Gyorgy Orban!
llvm-svn: 254394
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp b/clang/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp index acf00041365..2eef1688d4c 100644 --- a/clang/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp @@ -230,11 +230,12 @@ public: if (!N) return; + const LangOptions &Opts = C.getLangOpts(); const SourceManager &SM = C.getSourceManager(); FullSourceLoc FL(S->getLocStart(), SM); std::string HashContent = GetIssueString(SM, FL, getCheckName().getName(), BT->getCategory(), - C.getLocationContext()->getDecl()); + C.getLocationContext()->getDecl(), Opts); C.emitReport(llvm::make_unique<BugReport>(*BT, HashContent, N)); } |