[scan-build] Fix reported logic error bugs
Apelete Seketeli via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 3 03:12:52 PDT 2016
Hello,
Here are a few changes that try to address some logic error bugs
reported by running scan-build over the LLVM code base.
I have no background in compiler technology and I may have been trying
to fix false positives; here is a quick overview of what scan-build
reported, let me know if the fixes are relevant:
Bug group: Logic error
Bug Type: Called C++ object pointer is null
Files: lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
Bug group: Logic error
Bug Type: Called C++ object pointer is null
Files: lib/CodeGen/AsmPrinter/DwarfUnit.cpp
Bug group: Logic error
Bug Type: Branch condition evaluates to a garbage value
Files: lib/Target/Hexagon/HexagonInstrInfo.cpp
Bug group: Logic error
Bug Type: Assigned value is garbage or undefined
Files: lib/Target/TargetRecip.cpp
Cheers.
--
Apelete
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scan-build-llvm-errors.patch
Type: text/x-diff
Size: 3010 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160403/9217c7b8/attachment.patch>
More information about the llvm-commits
mailing list