[libcxx-commits] [PATCH] D113910: Remove not needed call to __is_long()

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Nov 16 08:26:28 PST 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rGd17d89f4eb62: [libc++] Remove not needed call to __is_long() (authored by nilayvaish, committed by ldionne).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D113910

Files:
  libcxx/include/string


Index: libcxx/include/string
===================================================================
--- libcxx/include/string
+++ libcxx/include/string
@@ -2658,7 +2658,7 @@
     if (__sz == __cap)
     {
         __grow_by(__cap, 1, __sz, __sz, 0);
-        __is_short = !__is_long();
+        __is_short = false;
     }
     pointer __p;
     if (__is_short)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113910.387658.patch
Type: text/x-patch
Size: 358 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20211116/e4e9f96e/attachment.bin>


More information about the libcxx-commits mailing list