diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-06-03 10:33:36 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-06-03 10:33:36 +0000 |
commit | 85b42078876748b94e140127e9f8a41934b21fb4 (patch) | |
tree | d58a4a3e77332f3d3affd8e6eebf28dbedcaf73e /lib/Lex/MacroInfo.cpp | |
parent | fe87b824477bce3a0c3bf2a8d0e949f0249f9a29 (diff) |
Copy IsWarnIfUnused too when making a copy of a MacroInfo.
Found by valgrind.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132540 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/MacroInfo.cpp')
-rw-r--r-- | lib/Lex/MacroInfo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Lex/MacroInfo.cpp b/lib/Lex/MacroInfo.cpp index c819011338..66d87a1938 100644 --- a/lib/Lex/MacroInfo.cpp +++ b/lib/Lex/MacroInfo.cpp @@ -42,6 +42,7 @@ MacroInfo::MacroInfo(const MacroInfo &MI, llvm::BumpPtrAllocator &PPAllocator) { IsDisabled = MI.IsDisabled; IsUsed = MI.IsUsed; IsAllowRedefinitionsWithoutWarning = MI.IsAllowRedefinitionsWithoutWarning; + IsWarnIfUnused = MI.IsWarnIfUnused; ArgumentList = 0; NumArguments = 0; setArgumentList(MI.ArgumentList, MI.NumArguments, PPAllocator); |