r234376 - Appease build bots that cannot find a viable conversion through CanQualType.

Aaron Ballman aaron at aaronballman.com
Tue Apr 7 17:13:33 PDT 2015


Author: aaronballman
Date: Tue Apr  7 19:13:33 2015
New Revision: 234376

URL: http://llvm.org/viewvc/llvm-project?rev=234376&view=rev
Log:
Appease build bots that cannot find a viable conversion through CanQualType.

Modified:
    cfe/trunk/lib/Sema/SemaStmt.cpp

Modified: cfe/trunk/lib/Sema/SemaStmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaStmt.cpp?rev=234376&r1=234375&r2=234376&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaStmt.cpp (original)
+++ cfe/trunk/lib/Sema/SemaStmt.cpp Tue Apr  7 19:13:33 2015
@@ -3404,7 +3404,8 @@ StmtResult Sema::ActOnCXXTryBlock(Source
     // 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





More information about the cfe-commits mailing list