Skip to content

Commit 50c44c2

Browse files
committed
Sema: Don't desugar the type when diagnosing unexportable Clang function types
1 parent 0ea1367 commit 50c44c2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Sema/TypeCheckAvailability.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3061,8 +3061,7 @@ class ProblematicTypeFinder : public TypeDeclFinder {
30613061
// but we need the canonical type to be serializable or else
30623062
// canonicalization (e.g. in SIL) might break things.
30633063
if (!loader->isSerializable(clangType, /*check canonical*/ true)) {
3064-
ctx.Diags.diagnose(Loc, diag::unexportable_clang_function_type,
3065-
fnType);
3064+
ctx.Diags.diagnose(Loc, diag::unexportable_clang_function_type, T);
30663065
}
30673066
}
30683067
}

0 commit comments

Comments
 (0)