]> granicus.if.org Git - llvm/commit
[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)
commit9d10770f15bdc78dfbb36fade06266f10e250d81
tree3aaa02bb1052afcd025286b0ad78092350a4a3ec
parentabf63388b0d2f75d1d1f5c909b49777e64465394
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360000 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/TargetLowering.h