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)
commita06445592da19eb0def1cb8ce560b07aa7dd8543
treebfadf279c4335b753b691c6c31b366e99d1481dc
parentf332e195da6a366da3e104aff115a900ca656de7
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372992 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMBaseInstrInfo.cpp