From 06650941a2f4c3895efdf6ddb08cc6ab43b3455d Mon Sep 17 00:00:00 2001 From: Hiroshi Yamauchi Date: Fri, 7 Sep 2018 18:44:53 +0000 Subject: [PGO][CHR] Build/warning fix llvm-svn: 341692 --- llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp') diff --git a/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp b/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp index 7b874c7507f..70b2907e382 100644 --- a/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp +++ b/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp @@ -454,6 +454,8 @@ static void LLVM_ATTRIBUTE_UNUSED dumpIR(Function &F, const char *Label, CHRStats *Stats) { StringRef FuncName = F.getName(); StringRef ModuleName = F.getParent()->getName(); + (void)(FuncName); // Unused in release build. + (void)(ModuleName); // Unused in release build. CHR_DEBUG(dbgs() << "CHR IR dump " << Label << " " << ModuleName << " " << FuncName); if (Stats) -- cgit v1.2.3