[PATCH] D19498: [scan-build] fix logic error warnings emitted on llvm code base

Apelete Seketeli via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 25 14:36:58 PDT 2016


apelete created this revision.
apelete added reviewers: joe.abbey, nadav, kparzysz, t.p.northover.
apelete added a subscriber: llvm-commits.
Herald added subscribers: MatzeB, aemerson.

This patch fixes logic error warnings of the type "called C++ object
pointer is null" that were emitted by Clang Static Analyzer on the
following files:
- lib/Transforms/Scalar/TailRecursionElimination.cpp,
- lib/Transforms/Scalar/StructurizeCFG.cpp,
- lib/Transforms/Scalar/ScalarReplAggregates.cpp,
- lib/Target/X86/AsmParser/X86AsmParser.cpp,
- lib/Target/Hexagon/RDFGraph.cpp,
- lib/Target/Hexagon/HexagonCFGOptimizer.cpp,
- lib/Target/ARM/Thumb2SizeReduction.cpp,
- lib/Target/ARM/MCTargetDesc/ARMMachObjectWriter.cpp,
- lib/Target/ARM/ARMFrameLowering.cpp,
- lib/CodeGen/ScheduleDAGInstrs.cpp,
- lib/Bitcode/Writer/BitcodeWriter.cpp.

Signed-off-by: Apelete Seketeli <apelete at seketeli.net>

http://reviews.llvm.org/D19498

Files:
  lib/Bitcode/Writer/BitcodeWriter.cpp
  lib/CodeGen/ScheduleDAGInstrs.cpp
  lib/Target/ARM/ARMFrameLowering.cpp
  lib/Target/ARM/MCTargetDesc/ARMMachObjectWriter.cpp
  lib/Target/ARM/Thumb2SizeReduction.cpp
  lib/Target/Hexagon/HexagonCFGOptimizer.cpp
  lib/Target/Hexagon/RDFGraph.cpp
  lib/Target/X86/AsmParser/X86AsmParser.cpp
  lib/Transforms/Scalar/ScalarReplAggregates.cpp
  lib/Transforms/Scalar/StructurizeCFG.cpp
  lib/Transforms/Scalar/TailRecursionElimination.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19498.54911.patch
Type: text/x-patch
Size: 6406 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160425/95f7fb1a/attachment.bin>


More information about the llvm-commits mailing list