aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDeclCXX.cpp
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2011-11-01 18:10:22 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2011-11-01 18:10:22 +0000
commit2eb0ce3610a877f75e95c66d6c2bff315e127009 (patch)
tree8cbb36850be2cfa7f4ad4bcd6d2368795df59f56 /lib/Sema/SemaDeclCXX.cpp
parent0bfaf067c294bc4064c2f1aee0bc1c51e861ac65 (diff)
Silence a warning in -Asserts builds
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143471 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclCXX.cpp')
-rw-r--r--lib/Sema/SemaDeclCXX.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Sema/SemaDeclCXX.cpp b/lib/Sema/SemaDeclCXX.cpp
index c43db52132..60a128165f 100644
--- a/lib/Sema/SemaDeclCXX.cpp
+++ b/lib/Sema/SemaDeclCXX.cpp
@@ -2143,10 +2143,8 @@ Sema::BuildDelegatingInitializer(TypeSourceInfo *TInfo,
if (DelegationInit.isInvalid())
return true;
- CXXConstructExpr *ConExpr = cast<CXXConstructExpr>(DelegationInit.get());
- CXXConstructorDecl *Constructor
- = ConExpr->getConstructor();
- assert(Constructor && "Delegating constructor with no target?");
+ assert(cast<CXXConstructExpr>(DelegationInit.get())->getConstructor() &&
+ "Delegating constructor with no target?");
CheckImplicitConversions(DelegationInit.get(), Args.getStartLoc());