From 13756eaa7c29673267fd20651a56883335dca123 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Wed, 8 Apr 2015 00:13:33 +0000 Subject: [PATCH] Appease build bots that cannot find a viable conversion through CanQualType. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@234376 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaStmt.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Sema/SemaStmt.cpp b/lib/Sema/SemaStmt.cpp index 8bf1403f38..5774f53c06 100644 --- a/lib/Sema/SemaStmt.cpp +++ b/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 -- 2.40.0