r184516 - Add an assert() suggested by Richard.
Nico Weber
nicolasweber at gmx.de
Thu Jun 20 18:29:36 PDT 2013
Author: nico
Date: Thu Jun 20 20:29:36 2013
New Revision: 184516
URL: http://llvm.org/viewvc/llvm-project?rev=184516&view=rev
Log:
Add an assert() suggested by Richard.
Modified:
cfe/trunk/lib/AST/ASTContext.cpp
Modified: cfe/trunk/lib/AST/ASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTContext.cpp?rev=184516&r1=184515&r2=184516&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ASTContext.cpp (original)
+++ cfe/trunk/lib/AST/ASTContext.cpp Thu Jun 20 20:29:36 2013
@@ -858,6 +858,7 @@ TypedefDecl *ASTContext::getUInt128Decl(
}
TypeDecl *ASTContext::getFloat128StubType() const {
+ assert(LangOpts.CPlusPlus && "should only be called for c++");
if (!Float128StubDecl) {
Float128StubDecl = CXXRecordDecl::Create(const_cast<ASTContext &>(*this),
TTK_Struct,
More information about the cfe-commits
mailing list