From: Kostya Serebryany Date: Mon, 2 May 2016 19:07:20 +0000 (+0000) Subject: [scan-build] fix logic error warning emitted on compiler-rt code base X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d83c96fa443cd2c61b99b9d7d453515f352af026;p=platform%2Fupstream%2Fllvm.git [scan-build] fix logic error warning emitted on compiler-rt code base Summary: Fix a "called c++ object pointer is null" warning emitted by Clang Static Analyzer on the following file: - lib/asan/asan_suppressions.cc. Signed-off-by: Apelete Seketeli Reviewers: kcc Subscribers: Eugene.Zelenko, kubabrecka, llvm-commits Differential Revision: http://reviews.llvm.org/D19627 llvm-svn: 268282 --- diff --git a/compiler-rt/lib/asan/asan_suppressions.cc b/compiler-rt/lib/asan/asan_suppressions.cc index 41887b5..62c868d 100644 --- a/compiler-rt/lib/asan/asan_suppressions.cc +++ b/compiler-rt/lib/asan/asan_suppressions.cc @@ -89,6 +89,7 @@ bool IsStackTraceSuppressed(const StackTrace *stack) { if (suppression_ctx->HasSuppressionType(kInterceptorViaFunction)) { SymbolizedStack *frames = symbolizer->SymbolizePC(addr); + CHECK(frames); for (SymbolizedStack *cur = frames; cur; cur = cur->next) { const char *function_name = cur->info.function; if (!function_name) {