From 85b42078876748b94e140127e9f8a41934b21fb4 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 3 Jun 2011 10:33:36 +0000 Subject: [PATCH] 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 --- lib/Lex/MacroInfo.cpp | 1 + 1 file changed, 1 insertion(+) 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); -- 2.40.0