[PATCH] D15115: [Microsoft][C++] Clang doesn't support a use of "this" pointer inside inline asm

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 14 14:53:44 PST 2015


rnk accepted this revision.
rnk added a comment.
This revision is now accepted and ready to land.

lgtm


================
Comment at: test/CodeGen/ms_this.cpp:40
@@ +39,3 @@
+    //CHECK: %this.addr = alloca %struct.s*
+	//CHECK: call void asm sideeffect inteldialect "mov eax, qword ptr this"
+  }
----------------
Is this correct? Shouldn't "this" be $1 or something?


http://reviews.llvm.org/D15115





More information about the llvm-commits mailing list