http://llvm.org/bugs/show_bug.cgi?id=20091

Reid Kleckner <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #23 from Reid Kleckner <[email protected]> ---
Fixed in r216481.

$ cat t.cpp
void
NS_InvokeByIndex(void* that, unsigned int methodIndex)
{
    __asm {
        mov     edx,[that]           // vtable in edx
        mov     eax,methodIndex
        call    [edx][eax*4]        // stdcall, i.e. callee cleans up stack.
    }
}

$ clang -cc1 t.cpp -S -fms-extensions -o - | grep call
        calll   *(%edx,%eax,4)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to