AssumeBundleQueries.cpp - don't dereference a dyn_cast<> result. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 6 Jun 2021 14:05:32 +0000 (15:05 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 6 Jun 2021 14:25:03 +0000 (15:25 +0100)
commit76a1be05fa00638532bfda02839f1847ab15ede7
tree86af6449080ee7b45a22b944c27d23073f53b408
parentd466ca087aae958d1c0a965c561be07d2cb3e7e2
AssumeBundleQueries.cpp - don't dereference a dyn_cast<> result. NFCI.

Use cast<> instead which will assert that the cast is correct and not just return null - the match() should have already failed if the cast isn't valid anyhow.

Fixes static analysis warning.
llvm/lib/Analysis/AssumeBundleQueries.cpp