summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
index 3e21f399bb0..f2c19328ff1 100644
--- a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
+++ b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
@@ -709,11 +709,11 @@ void InstrProfiling::getMemOPSizeOptions() {
auto Pos = MemOPSizeRange.find(":");
if (Pos != std::string::npos) {
if (Pos > 0)
- MemOPSizeRangeStart = std::stoi(MemOPSizeRange.substr(0, Pos));
+ MemOPSizeRangeStart = atoi(MemOPSizeRange.substr(0, Pos).c_str());
if (Pos < MemOPSizeRange.size() - 1)
- MemOPSizeRangeLast = std::stoi(MemOPSizeRange.substr(Pos + 1));
+ MemOPSizeRangeLast = atoi(MemOPSizeRange.substr(Pos + 1).c_str());
} else
- MemOPSizeRangeLast = std::stoi(MemOPSizeRange);
+ MemOPSizeRangeLast = atoi(MemOPSizeRange.c_str());
}
assert(MemOPSizeRangeLast >= MemOPSizeRangeStart);
OpenPOWER on IntegriCloud