diff options
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp | 4 |
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 |