HomePhabricator

Fix up clang-tidy warnings around null and pointers.

Authored by echristo on Jun 2 2020, 1:23 PM.

Description

Fix up clang-tidy warnings around null and pointers.

Details

Committed
echristoJun 2 2020, 1:24 PM
Parents
rGa3ada630d8ab: [DAGCombiner] Combine shifts into multiply-high
Branches
Unknown
Tags
Unknown

Event Timeline

dblaikie added inline comments.
/llvm/lib/CodeGen/CodeGenPrepare.cpp
271

Any particular reason this needed initialization and some other members (TLInfo, LI, PSI) did not? Looks like TRI is unconditionally initialized in runOnFunction and then only used within "optimizeBlock" (is & functions called from there) so it should be fine without an explicit initialization here? (& generally can be helpful not to add the extra init if there's no intentional codepath that uses it - then MSan can flag use as buggy where it couldn't otherwise)