Fix "pointer is null" static analyzer warning. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 15 Jan 2020 11:49:21 +0000 (11:49 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 15 Jan 2020 12:18:11 +0000 (12:18 +0000)
commit7b15865225103389150153d12904041fcc57fd0e
tree2a45ca87018c1a103b6ee34e2f24791be0adb92b
parent7570d387c21935b58afa67cb9ee17250e38721fa
Fix "pointer is null" static analyzer warning. NFCI.

Use cast<> instead of dyn_cast<> since the pointer is always dereferenced and cast<> will perform the null assertion for us.
llvm/lib/Target/NVPTX/NVPTXLowerAlloca.cpp