I'm looking into getting a reduced test case, but it's not
immediately available.
Fixes <rdar://problem/
16344806>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205285
91177308-0d34-0410-b5e6-
96231b3b80d8
// respectively, always prefer the conversion to a function pointer,
// because the function pointer is more lightweight and is more likely
// to keep code working.
- CXXConversionDecl *Conv1 = dyn_cast<CXXConversionDecl>(Function1);
+ CXXConversionDecl *Conv1 = dyn_cast_or_null<CXXConversionDecl>(Function1);
if (!Conv1)
return ImplicitConversionSequence::Indistinguishable;