Same here. I can't see anything wrong with the code, but I might be missing a lot of the atomic context. Maybe James can also comment on that side? cheers, --renato http://reviews.llvm.org/D4960