Fix a logic error warning of the type "called C++ object pointer is
null" emitted by Clang Static Analyzer on the following file:
- tools/dsymutil/DwarfLinker.cpp.
Signed-off-by: Apelete Seketeli <apelete@seketeli.net>
Differential D19972
[scan-build] fix warnings emitted on LLVM dsymutil code base apelete on May 5 2016, 7:04 AM. Authored by
Details
Fix a logic error warning of the type "called C++ object pointer is
Signed-off-by: Apelete Seketeli <apelete@seketeli.net>
Diff Detail Event TimelineComment Actions Attr can never be null here because one of Loc or Block will be non-null. This looks like a deficiency of the static analyzer. I'd rather initialize Attr in each of the branches of the if above if that helps. Comment Actions Tried initializing Attr in each of the if() branches and it didn't help with the warning. |