[pkg-d-commits] [ldc] 105/211: Mark _d_throw_exception as cold/noreturn
Matthias Klumpp
mak at moszumanska.debian.org
Sun Apr 23 22:36:14 UTC 2017
This is an automated email from the git hooks/post-receive script.
mak pushed a commit to annotated tag v1.1.0
in repository ldc.
commit c083a67e3e568c971dadd23eed2573df1cacfd99
Author: David Nadlinger <code at klickverbot.at>
Date: Fri Oct 21 23:04:00 2016 +0100
Mark _d_throw_exception as cold/noreturn
`noreturn` have been inferred already by the `unreachable` following
the call, but being explicit can't hurt.
---
gen/runtime.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gen/runtime.cpp b/gen/runtime.cpp
index a680a9f..f0be7d7 100644
--- a/gen/runtime.cpp
+++ b/gen/runtime.cpp
@@ -610,7 +610,8 @@ static void buildRuntimeModule() {
//////////////////////////////////////////////////////////////////////////////
// void _d_throw_exception(Object e)
- createFwdDecl(LINKc, voidTy, {"_d_throw_exception"}, {objectTy});
+ createFwdDecl(LINKc, voidTy, {"_d_throw_exception"}, {objectTy}, {},
+ Attr_Cold_NoReturn);
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-d/ldc.git
More information about the pkg-d-commits
mailing list