Skip to content

Commit 2756e59

Browse files
committed
Don’t demangle an error type.
1 parent 9d01b59 commit 2756e59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/USRGeneration.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ bool ide::printDeclUSR(const ValueDecl *D, raw_ostream &OS) {
226226
return printObjCUSR(D, OS);
227227
}
228228

229-
if (!D->hasInterfaceType())
229+
if (!D->hasInterfaceType() || D->getInterfaceType()->hasError())
230230
return true;
231231

232232
// Invalid code.

0 commit comments

Comments
 (0)