From aa301de7e48c994095aeeb6a1025fc056c34c123 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Wed, 8 Apr 2015 00:13:33 +0000 Subject: Appease build bots that cannot find a viable conversion through CanQualType. llvm-svn: 234376 --- clang/lib/Sema/SemaStmt.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'clang/lib/Sema/SemaStmt.cpp') diff --git a/clang/lib/Sema/SemaStmt.cpp b/clang/lib/Sema/SemaStmt.cpp index 8bf1403f38c..5774f53c060 100644 --- a/clang/lib/Sema/SemaStmt.cpp +++ b/clang/lib/Sema/SemaStmt.cpp @@ -3404,7 +3404,8 @@ StmtResult Sema::ActOnCXXTryBlock(SourceLocation TryLoc, Stmt *TryBlock, // Walk the type hierarchy to diagnose when this type has already been // handled (duplication), or cannot be handled (derivation inversion). We // ignore top-level cv-qualifiers, per [except.handle]p3 - CatchHandlerType HandlerCHT = Context.getCanonicalType(H->getCaughtType()); + CatchHandlerType HandlerCHT = + (QualType)Context.getCanonicalType(H->getCaughtType()); // We can ignore whether the type is a reference or a pointer; we need the // underlying declaration type in order to get at the underlying record -- cgit v1.2.3