summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaStmtAsm.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2012-11-12 23:13:34 +0000
committerEric Christopher <echristo@gmail.com>2012-11-12 23:13:34 +0000
commitd41010af440e10b00c297fb18039ffe67b5035a6 (patch)
treebfa899353e915c60e62a791153825ea5aa53001e /clang/lib/Sema/SemaStmtAsm.cpp
parent45f697396798d376bc99793c081d823fd3c909be (diff)
downloadbcm5719-llvm-d41010af440e10b00c297fb18039ffe67b5035a6.tar.gz
bcm5719-llvm-d41010af440e10b00c297fb18039ffe67b5035a6.zip
Finish reverting r167761, it's causing test failures.
llvm-svn: 167777
Diffstat (limited to 'clang/lib/Sema/SemaStmtAsm.cpp')
-rw-r--r--clang/lib/Sema/SemaStmtAsm.cpp3
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))
OpenPOWER on IntegriCloud