https://llvm.org/bugs/show_bug.cgi?id=26997
Коренберг Марк <socketp...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID |--- --- Comment #4 from Коренберг Марк <socketp...@gmail.com> --- OKAY. But following program does not work as expected :) How to fix ? Is this a bug ? =========================== #include <string.h> static void* memset_s(void* buf, int ch, size_t size) { void *ret = memset(buf, 0, sizeof(buf)); asm volatile("": : "g" (buf) :"memory"); return ret; } int main() { char buf[256]; memset_s(buf, 0, sizeof(buf)); return buf[0]; } -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs