]> granicus.if.org Git - llvm/commit
MetadataLoader lazyLoadOneMetadata - silence static analyzer dyn_cast<MDNode> null...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 26 Sep 2019 11:30:47 +0000 (11:30 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 26 Sep 2019 11:30:47 +0000 (11:30 +0000)
commiteb677f6036ac4a779c9088b8e0d1ef4ec4206c4f
treee799a4c2bacccb2c52085dda563810d964791504
parenta74aa5d91c50b44b7da9853b48428126b3284642
MetadataLoader lazyLoadOneMetadata - silence static analyzer dyn_cast<MDNode> null dereference warning. NFCI.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372966 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bitcode/Reader/MetadataLoader.cpp