[cfe-commits] r167777 - /cfe/trunk/lib/Sema/SemaStmtAsm.cpp

Chad Rosier mcrosier at apple.com
Mon Nov 12 15:15:47 PST 2012


Thanks, Eric.

On Nov 12, 2012, at 3:13 PM, Eric Christopher <echristo at gmail.com> wrote:

> 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))
> 
> 
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list