[PATCH] D20884: This patch attempts to primitive support for Win64 asan
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 6 08:37:30 PDT 2016
rnk accepted this revision.
rnk added a comment.
This revision is now accepted and ready to land.
Looks good, but there's some formatting issues around the VirtualProtect calls.
Etienne, do you mind landing this patch? We should probably bug sabre at nondot.org for commit access at this point.
================
Comment at: lib/interception/interception_win.cc:319-320
@@ -198,3 +318,4 @@
// Restore the original permissions.
- if (!VirtualProtect((void *)old_bytes, head, old_prot, &unused_prot))
+ if (!VirtualProtect((void *) (old_bytes - kExtraPrevBytes),
+ head + kExtraPrevBytes, old_prot, &unused_prot))
return false; // not clear if this failure bothers us.
----------------
I'd recommend getting clang-format: http://clang.llvm.org/docs/ClangFormat.html
It has editor integrations for VS, Vim, emacs, and BBEdit(?). I'm surprised Sublime isn't in that list... Anyway, it's really worth taking the time to get it wired up to some editor keypress to avoid discussing code formatting.
http://reviews.llvm.org/D20884
More information about the llvm-commits
mailing list