Add an assert() suggested by Richard.

llvm-svn: 184516
This commit is contained in:
Nico Weber 2013-06-21 01:29:36 +00:00
parent 319f41382a
commit 5b0b46ffa2
1 changed files with 1 additions and 0 deletions

View File

@ -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,