diff options
author | Eric Christopher <echristo@gmail.com> | 2012-11-12 23:13:34 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2012-11-12 23:13:34 +0000 |
commit | 6ceb377ae4e32eeed2647aacc4a7d5c4564641bf (patch) | |
tree | 7ae1fd80adf8cec35cb462533819924e7b052b42 | |
parent | 882995be7ca56efb2ae7beb64611a0fe460768cc (diff) |
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
-rw-r--r-- | lib/Sema/SemaStmtAsm.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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)) |