diff --git a/clang/docs/LibASTImporter.rst b/clang/docs/LibASTImporter.rst index bedaf527f5e9..515eff7ebe33 100644 --- a/clang/docs/LibASTImporter.rst +++ b/clang/docs/LibASTImporter.rst @@ -468,7 +468,7 @@ Note, there may be several different ASTImporter objects which import into the s cxxRecordDecl(hasName("Y"), isDefinition()), ToUnit); ToYDef->dump(); // An error is set for "ToYDef" in the shared state. - Optional OptErr = + Optional OptErr = ImporterState->getImportDeclErrorIfAny(ToYDef); assert(OptErr);