Skip to content

Commit 7cbe101

Browse files
committed
No warning at for non-DSL nodes used in an inlined DSL node
* Such as DirectCallNode and manual nodes in languages.
1 parent 226a0d2 commit 7cbe101

File tree

1 file changed

+1
-1
lines changed
  • truffle/src/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/parser

1 file changed

+1
-1
lines changed

truffle/src/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/parser/NodeParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3765,7 +3765,7 @@ private void parseCached(CacheExpression cache, SpecializationData specializatio
37653765
getSimpleName(types.GenerateInline),
37663766
getSimpleName(types.GenerateInline),
37673767
getSimpleName(types.Cached));
3768-
} else if (node.isGenerateInline() && !isGenerateInlineFalse(cache)) {
3768+
} else if (node.isGenerateInline() && NodeCodeGenerator.isSpecializedNode(cache.getParameter().getType()) && !isGenerateInlineFalse(cache)) {
37693769
cache.addSuppressableWarning(TruffleSuppressedWarnings.INLINING_RECOMMENDATION,
37703770
"The cached node type does not support object inlining." + //
37713771
" Add @%s or @%s(false) on the node type or disable inlining using @%s(inline=false) to resolve this.",

0 commit comments

Comments
 (0)