diff options
author | Matt Beaumont-Gay <matthewbg@google.com> | 2012-02-24 08:37:56 +0000 |
---|---|---|
committer | Matt Beaumont-Gay <matthewbg@google.com> | 2012-02-24 08:37:56 +0000 |
commit | 28e4702a1f978213ff945fe4369e3be7444bf320 (patch) | |
tree | 241faf317451d96346514dacb58a1cb99a6a4633 /lib/Sema/SemaInit.cpp | |
parent | f6cfe8ba2b4d98c20181568e449edf0b60904b03 (diff) |
Sink variable into assert
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151356 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaInit.cpp')
-rw-r--r-- | lib/Sema/SemaInit.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Sema/SemaInit.cpp b/lib/Sema/SemaInit.cpp index 756f130b7f..fcc74e7d3f 100644 --- a/lib/Sema/SemaInit.cpp +++ b/lib/Sema/SemaInit.cpp @@ -4628,8 +4628,7 @@ PerformConstructorInitialization(Sema &S, // Force even a trivial, implicit default constructor to be // semantically checked. We do this explicitly because we don't build // the definition for completely trivial constructors. - CXXRecordDecl *ClassDecl = Constructor->getParent(); - assert(ClassDecl && "No parent class for constructor."); + assert(Constructor->getParent() && "No parent class for constructor."); if (Constructor->isDefaulted() && Constructor->isDefaultConstructor() && Constructor->isTrivial() && !Constructor->isUsed(false)) S.DefineImplicitDefaultConstructor(Loc, Constructor); |