Replace getAs with castAs to fix null dereference static analyzer warning.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 5 Mar 2020 15:28:43 +0000 (15:28 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 5 Mar 2020 15:28:54 +0000 (15:28 +0000)
commita8648fd19aecfe2aed3ce529f488930cc37db4c2
treee0be00144b2e4f7876750e3b74e81f83bd0a2cc8
parent40e7bfc42461bc6ed7ea51564e7bb93f25bf5f08
Replace getAs with castAs to fix null dereference static analyzer warning.

Use castAs as we know the cast should succeed and we're dereferencing in the mangleBareFunctionType call.
clang/lib/AST/ItaniumMangle.cpp