]> granicus.if.org Git - llvm/commit
IRTranslator - silence static analyzer null dereference warnings. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 13 Oct 2019 11:29:35 +0000 (11:29 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 13 Oct 2019 11:29:35 +0000 (11:29 +0000)
commit1e9936e7449f7b6b15157db3a2ea6d7f245c1e07
tree75d74634d7df573861ecb1e7786d408a30052cbd
parent2c6dc1b5633ed0fc90d43f645fefad7299332bc7
IRTranslator - silence static analyzer null dereference warnings. NFCI.

The CmpInst::getType() calls can be replaced by just using User::getType() that it was dyn_cast from, and we then need to assert that any default predicate cases came from the CmpInst.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374716 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/GlobalISel/IRTranslator.cpp