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)
commit944a051ebbdd11117e6afaed86f01165f56f3ba9
tree23f314f4cbd47188493deb9aac6a2a2f5c4a29d5
parentd2b790eb680520d39f07d45449a361da3bd83c65
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.

llvm-svn: 374716
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp