diff options
| author | Nico Weber <nicolasweber@gmx.de> | 2013-06-21 01:29:36 +0000 | 
|---|---|---|
| committer | Nico Weber <nicolasweber@gmx.de> | 2013-06-21 01:29:36 +0000 | 
| commit | 5b0b46ffa265b0c586669a486cd39eda32f8a6a8 (patch) | |
| tree | 780cd378ff2fa4451a905bad4d7d3a9cb5835920 | |
| parent | 319f41382aecc1a81b720f5aa40b16a6bd1124a6 (diff) | |
| download | bcm5719-llvm-5b0b46ffa265b0c586669a486cd39eda32f8a6a8.tar.gz bcm5719-llvm-5b0b46ffa265b0c586669a486cd39eda32f8a6a8.zip | |
Add an assert() suggested by Richard.
llvm-svn: 184516
| -rw-r--r-- | clang/lib/AST/ASTContext.cpp | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index f91182b9bd5..70c933e7521 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -858,6 +858,7 @@ TypedefDecl *ASTContext::getUInt128Decl() const {  }  TypeDecl *ASTContext::getFloat128StubType() const { +  assert(LangOpts.CPlusPlus && "should only be called for c++");    if (!Float128StubDecl) {      Float128StubDecl = CXXRecordDecl::Create(const_cast<ASTContext &>(*this),                                                TTK_Struct, | 

