From: Douglas Gregor Date: Tue, 16 Mar 2010 19:09:18 +0000 (+0000) Subject: Make sure we actually override ReadHeaderFileInfo when we meant to X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec1afbfd8e880d0169aab0ececa2e7e1611f4955;p=clang Make sure we actually override ReadHeaderFileInfo when we meant to git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98655 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Frontend/ASTUnit.cpp b/lib/Frontend/ASTUnit.cpp index 3bf1fab1c2..04cbcb79c8 100644 --- a/lib/Frontend/ASTUnit.cpp +++ b/lib/Frontend/ASTUnit.cpp @@ -83,7 +83,7 @@ public: return false; } - virtual void ReadHeaderFileInfo(const HeaderFileInfo &HFI) { + virtual void ReadHeaderFileInfo(const HeaderFileInfo &HFI, unsigned ID) { HSI.setHeaderFileInfoForUID(HFI, NumHeaderInfos++); } diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp index 12c5b6c704..cff35b72c4 100644 --- a/lib/Parse/ParseDecl.cpp +++ b/lib/Parse/ParseDecl.cpp @@ -110,7 +110,7 @@ AttributeList *Parser::ParseGNUAttributes(SourceLocation *EndLoc) { IdentifierInfo *AttrName = Tok.getIdentifierInfo(); SourceLocation AttrNameLoc = ConsumeToken(); - // check if we have a "paramterized" attribute + // check if we have a "parameterized" attribute if (Tok.is(tok::l_paren)) { ConsumeParen(); // ignore the left paren loc for now