From e302792b6155bb195f88610a1ebde38343cf402e Mon Sep 17 00:00:00 2001 From: John McCall Date: Wed, 25 Aug 2010 11:45:40 +0000 Subject: GCC didn't care for my attempt at API compatibility, so brute-force everything to the new constants. llvm-svn: 112047 --- clang/lib/Sema/Sema.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Sema/Sema.cpp') diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp index 120035c923a..31d6f0dd324 100644 --- a/clang/lib/Sema/Sema.cpp +++ b/clang/lib/Sema/Sema.cpp @@ -210,7 +210,7 @@ void Sema::ImpCastExprToType(Expr *&Expr, QualType Ty, // If this is a derived-to-base cast to a through a virtual base, we // need a vtable. - if (Kind == CastExpr::CK_DerivedToBase && + if (Kind == CK_DerivedToBase && BasePathInvolvesVirtualBase(*BasePath)) { QualType T = Expr->getType(); if (const PointerType *Pointer = T->getAs()) -- cgit v1.2.3