diff --git a/src/libsodium/sodium/utils.c b/src/libsodium/sodium/utils.c index a176f87a..2e3fcea8 100644 --- a/src/libsodium/sodium/utils.c +++ b/src/libsodium/sodium/utils.c @@ -114,7 +114,7 @@ sodium_memzero(void *const pnt, const size_t len) memset(pnt, 0, len); _sodium_dummy_symbol_to_prevent_memzero_lto(pnt, len); # ifdef HAVE_AMD64_ASM - __asm__ __volatile__ ("" : : "p"(pnt)); + __asm__ __volatile__ ("" : : "r"(pnt) : "memory"); # endif #else volatile unsigned char *volatile pnt_ =