diff options
Diffstat (limited to 'lib/Lex/MacroInfo.cpp')
| -rw-r--r-- | lib/Lex/MacroInfo.cpp | 5 | 
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Lex/MacroInfo.cpp b/lib/Lex/MacroInfo.cpp index 5a7af5639830..3d0c9a1c2b51 100644 --- a/lib/Lex/MacroInfo.cpp +++ b/lib/Lex/MacroInfo.cpp @@ -27,7 +27,8 @@ MacroInfo::MacroInfo(SourceLocation DefLoc) : Location(DefLoc) {    IsAllowRedefinitionsWithoutWarning = false;    IsWarnIfUnused = false;    IsDefinitionLengthCached = false; - +  IsPublic = true; +      ArgumentList = 0;    NumArguments = 0;  } @@ -48,6 +49,8 @@ MacroInfo::MacroInfo(const MacroInfo &MI, llvm::BumpPtrAllocator &PPAllocator) {    IsWarnIfUnused = MI.IsWarnIfUnused;    IsDefinitionLengthCached = MI.IsDefinitionLengthCached;    DefinitionLength = MI.DefinitionLength; +  IsPublic = MI.IsPublic; +      ArgumentList = 0;    NumArguments = 0;    setArgumentList(MI.ArgumentList, MI.NumArguments, PPAllocator);  | 
