[cfe-commits] r55710 - in /cfe/trunk: include/clang/AST/Expr.h include/clang/AST/StmtNodes.def include/clang/Basic/DiagnosticKinds.def lib/AST/Expr.cpp lib/AST/StmtPrinter.cpp lib/AST/StmtSerialization.cpp lib/Sema/Sema.cpp lib/Sema/Sema.h lib/Se

Eli Friedman eli.friedman at gmail.com
Thu Sep 4 12:19:10 PDT 2008


On Wed, Sep 3, 2008 at 11:15 AM, Steve Naroff <snaroff at apple.com> wrote:
> +  // For now, restrict multiple return statements in a block to have
> +  // strict compatible types only.
> +  QualType BlockQT = QualType(CurBlock->ReturnType, 0);
> +  if (Context.getCanonicalType(BlockQT).getTypePtr()
> +      != Context.getCanonicalType(RetValType).getTypePtr()) {

It would probably be a bit clearer to use getUnqualifiedType here,
rather than getTypePtr().

-Eli



More information about the cfe-commits mailing list