aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-07-28 23:57:15 +0000
committerMike Stump <mrs@apple.com>2009-07-28 23:57:15 +0000
commitf711c41dd9412a8182793259d355c4f6979ed5ed (patch)
treec81c43f15d2b1eaeaa62660055c4cc48f5aa0380 /lib/AST/ASTContext.cpp
parentfd612dbb23cd31c03c898ae53ff18d0dfd8488f9 (diff)
Some minor cleanups, thanks Chris.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77402 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r--lib/AST/ASTContext.cpp16
1 files changed, 6 insertions, 10 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp
index 4da20f5a60..931010d904 100644
--- a/lib/AST/ASTContext.cpp
+++ b/lib/AST/ASTContext.cpp
@@ -3976,22 +3976,18 @@ static QualType DecodeTypeFromStr(const char *&Str, ASTContext &Context,
case 'P':
Type = Context.getFILEType();
if (Type.isNull()) {
- Error = ASTContext::GE_Missing_FILE;
+ Error = ASTContext::GE_Missing_stdio;
return QualType();
}
break;
case 'J':
- if (Signed) {
+ if (Signed)
Type = Context.getsigjmp_bufType();
- if (Type.isNull()) {
- Error = ASTContext::GE_Missing_sigjmp_buf;
- return QualType();
- }
- break;
- }
- Type = Context.getjmp_bufType();
+ else
+ Type = Context.getjmp_bufType();
+
if (Type.isNull()) {
- Error = ASTContext::GE_Missing_jmp_buf;
+ Error = ASTContext::GE_Missing_setjmp;
return QualType();
}
break;