[clang] 7c83799 - [MacroExpansionContext] Fix a warning.
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 22 16:55:21 PST 2021
Author: Kazu Hirata
Date: 2021-02-22T16:54:57-08:00
New Revision: 7c83799fd838df3ed00ead500997168ed3f1bd17
URL: https://github.com/llvm/llvm-project/commit/7c83799fd838df3ed00ead500997168ed3f1bd17
DIFF: https://github.com/llvm/llvm-project/commit/7c83799fd838df3ed00ead500997168ed3f1bd17.diff
LOG: [MacroExpansionContext] Fix a warning.
This patch fixes:
error: private field 'PP' is not used [-Werror,-Wunused-private-field]
Added:
Modified:
clang/lib/Analysis/MacroExpansionContext.cpp
Removed:
################################################################################
diff --git a/clang/lib/Analysis/MacroExpansionContext.cpp b/clang/lib/Analysis/MacroExpansionContext.cpp
index bb5095a114cb..f261ba8d5389 100644
--- a/clang/lib/Analysis/MacroExpansionContext.cpp
+++ b/clang/lib/Analysis/MacroExpansionContext.cpp
@@ -46,6 +46,7 @@ class MacroExpansionRangeRecorder : public PPCallbacks {
return SM.getExpansionLoc(Range.getEnd()).getLocWithOffset(1);
}();
+ (void)PP;
LLVM_DEBUG(llvm::dbgs() << "MacroExpands event: '";
dumpTokenInto(PP, llvm::dbgs(), MacroName);
llvm::dbgs()
More information about the cfe-commits
mailing list