]> granicus.if.org Git - clang/commitdiff
Copy IsWarnIfUnused too when making a copy of a MacroInfo.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 3 Jun 2011 10:33:36 +0000 (10:33 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 3 Jun 2011 10:33:36 +0000 (10:33 +0000)
Found by valgrind.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132540 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/MacroInfo.cpp

index c819011338e899aa6e78d90285e43e93156790fa..66d87a19386a9df5948e8225fa9ab866c35f81b5 100644 (file)
@@ -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);