summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2013-06-20 23:30:30 +0000
committerNico Weber <nicolasweber@gmx.de>2013-06-20 23:30:30 +0000
commit95296d4a16424698af61f87002dae3692902611d (patch)
tree5485b4c241c47343c533970d49b871dba84a89f7 /clang/lib/AST/ASTContext.cpp
parent930ecdb77b415f25d15dd65b7461b6b4f469bfe3 (diff)
downloadbcm5719-llvm-95296d4a16424698af61f87002dae3692902611d.tar.gz
bcm5719-llvm-95296d4a16424698af61f87002dae3692902611d.zip
Fix a crash with __flaot128 noticed by Eli.
llvm-svn: 184498
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r--clang/lib/AST/ASTContext.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index 870e09cc674..f91182b9bd5 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -859,12 +859,12 @@ TypedefDecl *ASTContext::getUInt128Decl() const {
TypeDecl *ASTContext::getFloat128StubType() const {
if (!Float128StubDecl) {
- Float128StubDecl = RecordDecl::Create(const_cast<ASTContext &>(*this),
- TTK_Struct,
- getTranslationUnitDecl(),
- SourceLocation(),
- SourceLocation(),
- &Idents.get("__float128"));
+ Float128StubDecl = CXXRecordDecl::Create(const_cast<ASTContext &>(*this),
+ TTK_Struct,
+ getTranslationUnitDecl(),
+ SourceLocation(),
+ SourceLocation(),
+ &Idents.get("__float128"));
}
return Float128StubDecl;
OpenPOWER on IntegriCloud