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 | 47ff1221b1a55c45347de4823344310fa3152550 (patch) | |
| tree | d8b1e7532862fc2c81c05155341d0c93b4586a60 | |
| parent | e839e2895f641207b42d1855f758fefff8c20c0a (diff) | |
| download | bcm5719-llvm-47ff1221b1a55c45347de4823344310fa3152550.tar.gz bcm5719-llvm-47ff1221b1a55c45347de4823344310fa3152550.zip | |
Sink variable into assert
llvm-svn: 151356
| -rw-r--r-- | clang/lib/Sema/SemaInit.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaInit.cpp b/clang/lib/Sema/SemaInit.cpp index 756f130b7fd..fcc74e7d3fb 100644 --- a/clang/lib/Sema/SemaInit.cpp +++ b/clang/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); |

