[libc-commits] [libc] 5ee5acf - [libc] Fix missing restricts

Guillaume Chatelet via libc-commits libc-commits at lists.llvm.org
Wed Nov 17 07:17:16 PST 2021


Author: Guillaume Chatelet
Date: 2021-11-17T15:16:25Z
New Revision: 5ee5acf7d94c9e83dd0917fb5f4bd52a27ae18bd

URL: https://github.com/llvm/llvm-project/commit/5ee5acf7d94c9e83dd0917fb5f4bd52a27ae18bd
DIFF: https://github.com/llvm/llvm-project/commit/5ee5acf7d94c9e83dd0917fb5f4bd52a27ae18bd.diff

LOG: [libc] Fix missing restricts

Added: 
    

Modified: 
    libc/src/string/memory_utils/elements_x86.h

Removed: 
    


################################################################################
diff  --git a/libc/src/string/memory_utils/elements_x86.h b/libc/src/string/memory_utils/elements_x86.h
index e8be55b510e2..3b45275bad9e 100644
--- a/libc/src/string/memory_utils/elements_x86.h
+++ b/libc/src/string/memory_utils/elements_x86.h
@@ -30,7 +30,7 @@ namespace x86 {
 
 #ifdef __SSE2__
 template <typename Base> struct Vector : public Base {
-  static void Copy(char *dst, const char *src) {
+  static void Copy(char *__restrict dst, const char *__restrict src) {
     Base::Store(dst, Base::Load(src));
   }
 


        


More information about the libc-commits mailing list