]> granicus.if.org Git - clang/commitdiff
Finish reverting r167761, it's causing test failures.
authorEric Christopher <echristo@gmail.com>
Mon, 12 Nov 2012 23:13:34 +0000 (23:13 +0000)
committerEric Christopher <echristo@gmail.com>
Mon, 12 Nov 2012 23:13:34 +0000 (23:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167777 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaStmtAsm.cpp

index 2578e0f41e4c00dd10b299dab9dc1bef290c3bfc..e3b5dd851f0eebc77ff4b8d1111fbd746fa085d5 100644 (file)
@@ -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))