summaryrefslogtreecommitdiff
path: root/src/hir/from_ast.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hir/from_ast.cpp')
-rw-r--r--src/hir/from_ast.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/hir/from_ast.cpp b/src/hir/from_ast.cpp
index 760339fe..99408020 100644
--- a/src/hir/from_ast.cpp
+++ b/src/hir/from_ast.cpp
@@ -1206,8 +1206,12 @@ namespace {
bool force_emit = false;
if( const auto* a = attrs.get("inline") )
{
- (void)a;
- force_emit = true;
+ if( a->has_sub_items() && ::std::any_of(a->items().begin(), a->items().end(), [](const auto& v){ return v.name() == "never"; }) ) {
+ // Inline(never)
+ }
+ else {
+ force_emit = true;
+ }
}
::HIR::Linkage linkage;