From 0d48fb89c023a98e991e29c01347ea588a38a790 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Tue, 20 Sep 2011 22:14:48 +0000 Subject: The location of the name in MacroDefinition is the beginning of its range, don't store an extra location for it. llvm-svn: 140190 --- clang/lib/Lex/PreprocessingRecord.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'clang/lib/Lex') diff --git a/clang/lib/Lex/PreprocessingRecord.cpp b/clang/lib/Lex/PreprocessingRecord.cpp index a4315b78d5b..2368b389810 100644 --- a/clang/lib/Lex/PreprocessingRecord.cpp +++ b/clang/lib/Lex/PreprocessingRecord.cpp @@ -229,9 +229,7 @@ void PreprocessingRecord::MacroDefined(const Token &Id, const MacroInfo *MI) { SourceRange R(MI->getDefinitionLoc(), MI->getDefinitionEndLoc()); MacroDefinition *Def - = new (*this) MacroDefinition(Id.getIdentifierInfo(), - MI->getDefinitionLoc(), - R); + = new (*this) MacroDefinition(Id.getIdentifierInfo(), R); addPreprocessedEntity(Def); MacroDefinitions[MI] = getPPEntityID(PreprocessedEntities.size()-1, /*isLoaded=*/false); -- cgit v1.2.3