summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2018-09-04 20:34:47 +0000
committerReid Kleckner <rnk@google.com>2018-09-04 20:34:47 +0000
commit792a4f8a21f0becbdcaa5df5912b21b1e27b5e50 (patch)
tree49c02ee76196d8d0928d5ded8446187ad8442207 /llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
parentb4dc69ff8093238261868762b6a215300a860ad6 (diff)
downloadbcm5719-llvm-792a4f8a21f0becbdcaa5df5912b21b1e27b5e50.tar.gz
bcm5719-llvm-792a4f8a21f0becbdcaa5df5912b21b1e27b5e50.zip
Fix unused variable warning
llvm-svn: 341400
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp b/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
index 2e01047bc7d..9a27b4a51e5 100644
--- a/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
+++ b/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
@@ -447,8 +447,8 @@ static bool shouldApply(Function &F, ProfileSummaryInfo& PSI) {
if (CHRFunctions.count(Name))
return true;
const char* DemangledName = nullptr;
- int Status = -1;
#if !defined(_MSC_VER)
+ int Status = -1;
DemangledName = abi::__cxa_demangle(Name.str().c_str(),
nullptr, nullptr, &Status);
#endif
@@ -462,8 +462,8 @@ static bool shouldApply(Function &F, ProfileSummaryInfo& PSI) {
static void dumpIR(Function &F, const char *Label, CHRStats *Stats) {
std::string Name = F.getName().str();
const char *DemangledName = nullptr;
- int Status = -1;
#if !defined(_MSC_VER)
+ int Status = -1;
DemangledName = abi::__cxa_demangle(Name.c_str(),
nullptr, nullptr, &Status);
#endif
OpenPOWER on IntegriCloud