[cfe-commits] r116470 - /cfe/trunk/lib/Sema/SemaType.cpp
John McCall
rjmccall at apple.com
Wed Oct 13 19:06:32 PDT 2010
Author: rjmccall
Date: Wed Oct 13 21:06:32 2010
New Revision: 116470
URL: http://llvm.org/viewvc/llvm-project?rev=116470&view=rev
Log:
Whoops. This really shouldn't compile in clang, either.
Modified:
cfe/trunk/lib/Sema/SemaType.cpp
Modified: cfe/trunk/lib/Sema/SemaType.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaType.cpp?rev=116470&r1=116469&r2=116470&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaType.cpp (original)
+++ cfe/trunk/lib/Sema/SemaType.cpp Wed Oct 13 21:06:32 2010
@@ -1902,14 +1902,14 @@
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());
More information about the cfe-commits
mailing list