diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2012-05-03 16:53:59 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2012-05-03 16:53:59 +0000 | 
| commit | 6b9a6e390fbb92c40eb9c6ac9e7abbd88dd7a767 (patch) | |
| tree | 2e51705e103e92c7be1b21e8bd8ffd5b5d0e4d52 /lib/AST/ASTContext.cpp | |
| parent | dbe13110f59f48b4dbb7552b3ac2935acdeece7f (diff) | |
Diffstat (limited to 'lib/AST/ASTContext.cpp')
| -rw-r--r-- | lib/AST/ASTContext.cpp | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index acf5e0bbc9af0..cb4d336de1576 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -481,7 +481,8 @@ void ASTContext::InitBuiltinTypes(const TargetInfo &Target) {    InitBuiltinType(ObjCBuiltinSelTy, BuiltinType::ObjCSel);    // Builtin type for __objc_yes and __objc_no -  ObjCBuiltinBoolTy = SignedCharTy; +  ObjCBuiltinBoolTy = (Target.useSignedCharForObjCBool() ? +                       SignedCharTy : BoolTy);    ObjCConstantStringType = QualType(); @@ -2193,6 +2194,8 @@ ASTContext::getFunctionType(QualType ResultTy,      Size += EPI.NumExceptions * sizeof(QualType);    else if (EPI.ExceptionSpecType == EST_ComputedNoexcept) {      Size += sizeof(Expr*); +  } else if (EPI.ExceptionSpecType == EST_Uninstantiated) { +    Size += 2 * sizeof(FunctionDecl*);    }    if (EPI.ConsumedArguments)      Size += NumArgs * sizeof(bool); | 
