aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaType.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-10-14 02:06:32 +0000
committerJohn McCall <rjmccall@apple.com>2010-10-14 02:06:32 +0000
commit008df5dce3938456ae7ea2e7ab3b2d12391ebf3e (patch)
tree1e423b5489c0c8fd8949173eff4cd4a34f99774b /lib/Sema/SemaType.cpp
parent1e030eb1194763b42c1752723be23b1515f48981 (diff)
Whoops. This really shouldn't compile in clang, either.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116470 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaType.cpp')
-rw-r--r--lib/Sema/SemaType.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp
index 5901737389..b85d626bd7 100644
--- a/lib/Sema/SemaType.cpp
+++ b/lib/Sema/SemaType.cpp
@@ -1902,14 +1902,14 @@ bool ProcessFnAttr(Sema &S, QualType &Type, const AttributeList &Attr) {
S.Diag(Attr.getLoc(), diag::err_attribute_regparm_wrong_platform)
<< NumParamsExpr->getSourceRange();
Attr.setInvalid();
- return;
+ return false;
}
if (NumParams.getLimitedValue(255) > S.Context.Target.getRegParmMax()) {
S.Diag(Attr.getLoc(), diag::err_attribute_regparm_invalid_number)
<< S.Context.Target.getRegParmMax() << NumParamsExpr->getSourceRange();
Attr.setInvalid();
- return;
+ return false;
}
Type = S.Context.getRegParmType(Type, NumParams.getZExtValue());