[PATCH] D80475: [TargetLoweringObjectFileImpl] Qualify std::transform
Orivej Desh via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat May 23 08:59:46 PDT 2020
orivej created this revision.
orivej added a reviewer: MaskRay.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
Fixes this build error:
llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp:1602:3: error: no matching function for call to 'transform'
transform(HexString.begin(), HexString.end(), HexString.begin(), tolower);
^~~~~~~~~
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D80475
Files:
llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
Index: llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
===================================================================
--- llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -1746,7 +1746,7 @@
static std::string APIntToHexString(const APInt &AI) {
unsigned Width = (AI.getBitWidth() / 8) * 2;
std::string HexString = AI.toString(16, /*Signed=*/false);
- transform(HexString.begin(), HexString.end(), HexString.begin(), tolower);
+ std::transform(HexString.begin(), HexString.end(), HexString.begin(), tolower);
unsigned Size = HexString.size();
assert(Width >= Size && "hex string is too large!");
HexString.insert(HexString.begin(), Width - Size, '0');
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80475.265868.patch
Type: text/x-patch
Size: 734 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200523/cc5deef0/attachment-0001.bin>
More information about the llvm-commits
mailing list