[PATCH] D80475: [TargetLoweringObjectFileImpl] Use llvm::transform

Orivej Desh via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 23 12:11:41 PDT 2020


orivej updated this revision to Diff 265879.
orivej retitled this revision from "[TargetLoweringObjectFileImpl] Qualify std::transform" to "[TargetLoweringObjectFileImpl] Use llvm::transform".

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80475/new/

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);
+  transform(HexString, 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.265879.patch
Type: text/x-patch
Size: 704 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200523/a6d2e3d2/attachment-0001.bin>


More information about the llvm-commits mailing list