[all-commits] [llvm/llvm-project] 33b02d: [NFC][Clang] Fix static code analyzer concern abou...
smanna12 via All-commits
all-commits at lists.llvm.org
Tue Sep 5 12:49:20 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 33b02d766eb83656c2bb214ac3512311e99874a2
https://github.com/llvm/llvm-project/commit/33b02d766eb83656c2bb214ac3512311e99874a2
Author: Manna, Soumi <soumi.manna at intel.com>
Date: 2023-09-05 (Tue, 05 Sep 2023)
Changed paths:
M clang/lib/Lex/PPDirectives.cpp
Log Message:
-----------
[NFC][Clang] Fix static code analyzer concern about null value dereference
CurLexer is dereferenced and should not be null in clang::Preprocessor::SkipExcludedConditionalBlock(clang::SourceLocation, clang::SourceLocation, bool, bool, clang::SourceLocation)
This patch adds an assert for NULL value check of pointer CurLexer and splits up all predicates so that, when/if a failure occurs, we'll be able to tell which predicate failed.
Reviewed By: tahonermann
Differential Revision: https://reviews.llvm.org/D158293
More information about the All-commits
mailing list