This is an archive of the discontinued LLVM Phabricator instance.

[scan-build] fix warnings emitted on LLVM Transforms code base
Needs RevisionPublic

Authored by apelete on May 5 2016, 6:10 AM.

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/Transforms/Scalar/ScalarReplAggregates.cpp,
  • lib/Transforms/Scalar/StructurizeCFG.cpp,
  • lib/Transforms/Scalar/TailRecursionElimination.cpp,
  • lib/Transforms/Scalar/RewriteStatepointsForGC.cpp,
  • lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp,
  • lib/Transforms/Scalar/ConstantHoisting.cpp,
  • lib/Transforms/Vectorize/SLPVectorizer.cpp.

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

Diff Detail

Event Timeline

apelete updated this revision to Diff 56274.May 5 2016, 6:10 AM
apelete retitled this revision from to [scan-build] fix warnings emitted on LLVM Transforms code base.
apelete updated this object.
apelete added a subscriber: llvm-commits.
reames requested changes to this revision.May 5 2016, 6:50 PM
reames edited edge metadata.

Per issues raised on llvm-dev, not yet ready for review. Please update once general questions are resolved.

Marking as "request changes" purely to hide this from my active review queue until concerns are resolved.

This revision now requires changes to proceed.May 5 2016, 6:50 PM
arsenm resigned from this revision.Apr 5 2020, 8:06 AM