[llvm] r341400 - Fix unused variable warning
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 4 13:34:47 PDT 2018
Author: rnk
Date: Tue Sep 4 13:34:47 2018
New Revision: 341400
URL: http://llvm.org/viewvc/llvm-project?rev=341400&view=rev
Log:
Fix unused variable warning
Modified:
llvm/trunk/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
Modified: llvm/trunk/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/ControlHeightReduction.cpp?rev=341400&r1=341399&r2=341400&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/ControlHeightReduction.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/ControlHeightReduction.cpp Tue Sep 4 13:34:47 2018
@@ -447,8 +447,8 @@ static bool shouldApply(Function &F, Pro
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, Pro
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
More information about the llvm-commits
mailing list