ARMBaseInstrInfo getOperandLatency - silence static analyzer dyn_cast<> null derefere...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 26 Sep 2019 16:05:55 +0000 (16:05 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 26 Sep 2019 16:05:55 +0000 (16:05 +0000)
commit2cf54d7b713ce3f60cd44a3c084b5d42cb190f4c
tree6081a9290084fce320fd0965a99d052063d2d4a7
parentbe13c43e08436fde88671b0912bae53dd4462f7b
ARMBaseInstrInfo getOperandLatency - silence static analyzer dyn_cast<> null dereference warnings. NFCI.

The static analyzer is warning about potential null dereferences, but we should be able to use cast<> directly and if not assert will fire for us.

llvm-svn: 372992
llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp