[cfe-commits] r167777 - /cfe/trunk/lib/Sema/SemaStmtAsm.cpp
Eric Christopher
echristo at gmail.com
Mon Nov 12 15:13:34 PST 2012
Author: echristo
Date: Mon Nov 12 17:13:34 2012
New Revision: 167777
URL: http://llvm.org/viewvc/llvm-project?rev=167777&view=rev
Log:
Finish reverting r167761, it's causing test failures.
Modified:
cfe/trunk/lib/Sema/SemaStmtAsm.cpp
Modified: cfe/trunk/lib/Sema/SemaStmtAsm.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaStmtAsm.cpp?rev=167777&r1=167776&r2=167777&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaStmtAsm.cpp (original)
+++ cfe/trunk/lib/Sema/SemaStmtAsm.cpp Mon Nov 12 17:13:34 2012
@@ -181,6 +181,9 @@
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))
More information about the cfe-commits
mailing list