ConstantFold - silence static analyzer dyn_cast<ExtractValueInst> null dereference...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 26 Sep 2019 16:30:36 +0000 (16:30 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 26 Sep 2019 16:30:36 +0000 (16:30 +0000)
commit514e6b6e6ed9d05e263e01dc80b1e1b9663aab38
treea8c75cf217d6098b7bf2898e4a66f8a30b7bd4b5
parent2cf54d7b713ce3f60cd44a3c084b5d42cb190f4c
ConstantFold - silence static analyzer dyn_cast<ExtractValueInst> null dereference warning. NFCI.

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

llvm-svn: 372993
llvm/lib/Analysis/ConstantFolding.cpp