From: Eric Christopher Date: Mon, 12 Nov 2012 23:13:34 +0000 (+0000) Subject: Finish reverting r167761, it's causing test failures. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6ceb377ae4e32eeed2647aacc4a7d5c4564641bf;p=clang Finish reverting r167761, it's causing test failures. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167777 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaStmtAsm.cpp b/lib/Sema/SemaStmtAsm.cpp index 2578e0f41e..e3b5dd851f 100644 --- a/lib/Sema/SemaStmtAsm.cpp +++ b/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))