reames added a comment. FYI, since we didn't seem to have one, I filed a bug for support pointer typed cmpxchgs: https://llvm.org/bugs/show_bug.cgi?id=26668. Repository: rL LLVM http://reviews.llvm.org/D17400