[TargetLowering] getValueType - use dyn_cast directly to find VectorType. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 5 May 2019 20:23:45 +0000 (20:23 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 5 May 2019 20:23:45 +0000 (20:23 +0000)
commit8c0ab999d355939a521d08254e41b717c75f3ff7
tree7341b9ae068ea9df96e87aaff52b898486beca81
parentaddc90e4e830f5bf76862f567e545b11aefbde81
[TargetLowering] getValueType - use dyn_cast directly to find VectorType. NFCI.

Matches what we do in other getValueType functions and fixes a null dereference warning in scan-build.

Also cleans up the rest of the function - use auto and standardize the variable names.

llvm-svn: 360000
llvm/include/llvm/CodeGen/TargetLowering.h