diff options
| author | Rong Xu <xur@google.com> | 2017-03-15 23:00:19 +0000 |
|---|---|---|
| committer | Rong Xu <xur@google.com> | 2017-03-15 23:00:19 +0000 |
| commit | 8acf76b6b97826e2f58036f36ff15cc29cc7e0f9 (patch) | |
| tree | 506e95cc177966d34e0b40f45e3215fd427c2735 /llvm/lib/Transforms/Instrumentation | |
| parent | 337e884643cb3861e53789b329be35655799808c (diff) | |
| download | bcm5719-llvm-8acf76b6b97826e2f58036f36ff15cc29cc7e0f9.tar.gz bcm5719-llvm-8acf76b6b97826e2f58036f36ff15cc29cc7e0f9.zip | |
Fix build failure from r297897.
llvm-svn: 297909
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation')
| -rw-r--r-- | llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp | 6 |
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); |

