[libc-commits] [PATCH] D149493: [libc] Fix printing on the GPU when given a `cpp::string_ref`

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri Apr 28 16:27:41 PDT 2023


sivachandra accepted this revision.
sivachandra added inline comments.
This revision is now accepted and ready to land.


================
Comment at: libc/utils/gpu/loader/Server.h:37
+      str_size = size;
+      str = malloc(size);
+      return str;
----------------
Why not `new` and `delete`?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D149493



More information about the libc-commits mailing list