From d41010af440e10b00c297fb18039ffe67b5035a6 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Mon, 12 Nov 2012 23:13:34 +0000 Subject: Finish reverting r167761, it's causing test failures. llvm-svn: 167777 --- clang/lib/Sema/SemaStmtAsm.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clang/lib/Sema') diff --git a/clang/lib/Sema/SemaStmtAsm.cpp b/clang/lib/Sema/SemaStmtAsm.cpp index 2578e0f41e4..e3b5dd851f0 100644 --- a/clang/lib/Sema/SemaStmtAsm.cpp +++ b/clang/lib/Sema/SemaStmtAsm.cpp @@ -181,6 +181,9 @@ StmtResult Sema::ActOnGCCAsmStmt(SourceLocation AsmLoc, bool IsSimple, 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)) -- cgit v1.2.3