[PATCH] D73543: [clang] Add support for __builtin_memcpy_inline

Alexander Richardson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 28 15:12:04 PST 2020


arichardson added inline comments.


================
Comment at: clang/docs/LanguageExtensions.rst:2259
+``__builtin_memcpy_inline(dst, src, size)`` is identical to
+``__builtin_memcpy(dst, src, size)`` expect that the generated code is
+guaranteed not to call any external functions. See [LLVM IR ‘llvm.memcpy.inline’
----------------
Typo: except


================
Comment at: clang/test/Sema/builtins-memcpy-inline.c:23
+}
+
+void test_memcpy_inline_null_buffer_is_ok_if_size_is_zero(void *ptr) {
----------------
Size can only be a constant right? Should there be a test for the error reported in that case?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D73543





More information about the llvm-commits mailing list