]> granicus.if.org Git - clang/commitdiff
Appease build bots that cannot find a viable conversion through CanQualType.
authorAaron Ballman <aaron@aaronballman.com>
Wed, 8 Apr 2015 00:13:33 +0000 (00:13 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Wed, 8 Apr 2015 00:13:33 +0000 (00:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@234376 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaStmt.cpp

index 8bf1403f38c25eda2a8cb38692770931fe124f6a..5774f53c060fa72cf2a6d4a783e9d3457a7049c4 100644 (file)
@@ -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