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 | d41010af440e10b00c297fb18039ffe67b5035a6 (patch) | |
tree | bfa899353e915c60e62a791153825ea5aa53001e /clang/lib | |
parent | 45f697396798d376bc99793c081d823fd3c909be (diff) | |
download | bcm5719-llvm-d41010af440e10b00c297fb18039ffe67b5035a6.tar.gz bcm5719-llvm-d41010af440e10b00c297fb18039ffe67b5035a6.zip |
Finish reverting r167761, it's causing test failures.
llvm-svn: 167777
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/Sema/SemaStmtAsm.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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)) |