summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
diff options
context:
space:
mode:
authorHiroshi Yamauchi <yamauchi@google.com>2018-09-07 18:44:53 +0000
committerHiroshi Yamauchi <yamauchi@google.com>2018-09-07 18:44:53 +0000
commit06650941a2f4c3895efdf6ddb08cc6ab43b3455d (patch)
treeed80b12aeaf1a19321406494c6d968bbe7a33c3c /llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
parentb2ed11a086e8203f862a71ac4afe484ad1528ad8 (diff)
downloadbcm5719-llvm-06650941a2f4c3895efdf6ddb08cc6ab43b3455d.tar.gz
bcm5719-llvm-06650941a2f4c3895efdf6ddb08cc6ab43b3455d.zip
[PGO][CHR] Build/warning fix
llvm-svn: 341692
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp2
1 files changed, 2 insertions, 0 deletions
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)
OpenPOWER on IntegriCloud