This is an archive of the discontinued LLVM Phabricator instance.

[scan-build] fix warnings emitted on LLVM CodeGen code base
AcceptedPublic

Authored by apelete on Apr 13 2016, 4:36 PM.

Details

Summary

Fix logic error warnings of the type "called C++ object pointer is
null" emitted by Clang Static Analyzer on the following files:

  • lib/CodeGen/AsmPrinter/DwarfUnit.cpp,
  • lib/CodeGen/ScheduleDAGInstrs.cpp,
  • lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp.

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

Diff Detail

Event Timeline

apelete updated this revision to Diff 53640.Apr 13 2016, 4:36 PM
apelete retitled this revision from to [clang-analyzer] fix warnings emitted on llvm code base.
apelete updated this object.
jlebar added a subscriber: jlebar.Apr 14 2016, 11:29 AM

lgtm for NVPTX changes.

Ping :).
Can someone help this one find its way into he main repo ?

apelete updated this revision to Diff 55296.Apr 27 2016, 12:42 PM

[clang-analyzer] fix warnings emitted on llvm code base

Changes since last revision:

  • lib/Transforms/Vectorize/SLPVectorizer.cpp: rework the fix for the warning in BoUpSLP::optimizeGatherSequence() and fix another one in BoUpSLP::BlockScheduling::tryScheduleBundle(),
  • lib/Analysis/LoopInfo.cpp: rework the fix in UnloopUpdater::getNearestLoop().
apelete updated this revision to Diff 55749.May 1 2016, 9:32 AM

[clang-analyzer] fix warnings emitted on llvm code base

Changes since last revision:

  • fast forward rebase on git master branch.

Waiting for review, could someone please have a look at this one ?

apelete updated this revision to Diff 56269.May 5 2016, 5:21 AM

[scan-build] fix warnings emitted on LLVM CodeGen code base

Changes since last revision:

  • split patch into CodeGen changes unit to ease review process,
  • cherry-pick CodeGen changes from D19498.
apelete retitled this revision from [clang-analyzer] fix warnings emitted on llvm code base to [scan-build] fix warnings emitted on LLVM CodeGen code base.May 5 2016, 5:33 AM
apelete updated this object.
apelete edited reviewers, added: dblaikie, MatzeB; removed: jholewinski, grosbach.
MatzeB accepted this revision.Nov 18 2016, 4:22 PM
MatzeB edited edge metadata.

LGTM

lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
6469

... "must not be NULL"

This revision is now accepted and ready to land.Nov 18 2016, 4:22 PM