summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Sema/SemaType.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/Sema/SemaType.cpp b/clang/lib/Sema/SemaType.cpp
index bb2fb990330..20c909a8ea4 100644
--- a/clang/lib/Sema/SemaType.cpp
+++ b/clang/lib/Sema/SemaType.cpp
@@ -1850,11 +1850,6 @@ bool ProcessFnAttr(Sema &S, QualType &Type, const AttributeList &Attr) {
&& !Type->isMemberFunctionPointerType())
return true;
- if (!GetResultType(Type)->isVoidType()) {
- S.Diag(Attr.getLoc(), diag::warn_noreturn_function_has_nonvoid_result)
- << (Type->isBlockPointerType() ? /* blocks */ 1 : /* functions */ 0);
- }
-
// Otherwise we can process right away.
Type = S.Context.getNoReturnType(Type);
return false;
OpenPOWER on IntegriCloud