[cfe-commits] r167763 - /cfe/trunk/test/CodeGen/x86_32-inline-asm.c

Bill Wendling isanbard at gmail.com
Mon Nov 12 14:14:27 PST 2012


Author: void
Date: Mon Nov 12 16:14:27 2012
New Revision: 167763

URL: http://llvm.org/viewvc/llvm-project?rev=167763&view=rev
Log:
That's causing an error.

Modified:
    cfe/trunk/test/CodeGen/x86_32-inline-asm.c

Modified: cfe/trunk/test/CodeGen/x86_32-inline-asm.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/x86_32-inline-asm.c?rev=167763&r1=167762&r2=167763&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/x86_32-inline-asm.c (original)
+++ cfe/trunk/test/CodeGen/x86_32-inline-asm.c Mon Nov 12 16:14:27 2012
@@ -7,9 +7,7 @@
 typedef unsigned long long u_int64_t;
 typedef u_int64_t uint64_t;
 
-struct S;
-
-int func(struct S *s) {
+int func() {
   // Error out if size is > 32-bits.
   uint32_t msr = 0x8b;
   uint64_t val = 0;
@@ -23,7 +21,4 @@
   unsigned char data;
   unsigned int port;
   __asm__ volatile("outb %0, %w1" : : "a" (data), "Nd" (port)); // No error expected.
-
-  // Don't error out for incomplete types.
-  __asm(""::"a"(*s));  // No error expected.
 }





More information about the cfe-commits mailing list