InputConstraintInfos.push_back(Info);
const Type *Ty = Exprs[i]->getType().getTypePtr();
- if (Ty->isDependentType() || Ty->isIncompleteType())
- continue;
-
unsigned Size = Context.getTypeSize(Ty);
if (!Context.getTargetInfo().validateInputSize(Literal->getString(),
Size))
typedef unsigned long long u_int64_t;
typedef u_int64_t uint64_t;
-int main () {
+struct S;
+
+int func(struct S *s) {
// Error out if size is > 32-bits.
uint32_t msr = 0x8b;
uint64_t val = 0;
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.
}