We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cc452e commit c25bea5Copy full SHA for c25bea5
lib/AST/ClangTypeConverter.cpp
@@ -118,17 +118,13 @@ const clang::Type *ClangTypeConverter::getFunctionType(
118
ArrayRef<AnyFunctionType::Param> params, Type resultTy,
119
AnyFunctionType::Representation repr) {
120
121
- SmallVector<Type, 4> paramsTy;
122
- for (auto p : params)
123
- paramsTy.push_back(p.getPlainType());
124
-
125
auto resultClangTy = convert(resultTy);
126
if (resultClangTy.isNull())
127
return nullptr;
128
129
SmallVector<clang::QualType, 8> paramsClangTy;
130
- for (auto p : paramsTy) {
131
- auto pc = convert(p);
+ for (auto p : params) {
+ auto pc = convert(p.getPlainType());
132
if (pc.isNull())
133
134
paramsClangTy.push_back(pc);
0 commit comments