[compiler-rt] r268282 - [scan-build] fix logic error warning emitted on compiler-rt code base
Kostya Serebryany via llvm-commits
llvm-commits at lists.llvm.org
Mon May 2 12:07:21 PDT 2016
Author: kcc
Date: Mon May 2 14:07:20 2016
New Revision: 268282
URL: http://llvm.org/viewvc/llvm-project?rev=268282&view=rev
Log:
[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 <apelete at seketeli.net>
Reviewers: kcc
Subscribers: Eugene.Zelenko, kubabrecka, llvm-commits
Differential Revision: http://reviews.llvm.org/D19627
Modified:
compiler-rt/trunk/lib/asan/asan_suppressions.cc
Modified: compiler-rt/trunk/lib/asan/asan_suppressions.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_suppressions.cc?rev=268282&r1=268281&r2=268282&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_suppressions.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_suppressions.cc Mon May 2 14:07:20 2016
@@ -89,6 +89,7 @@ bool IsStackTraceSuppressed(const StackT
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) {
More information about the llvm-commits
mailing list