Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
typerSniper committed Nov 8, 2024
1 parent a525278 commit bc881cf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Source/Core/Inline.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ private string getName (Implementation impl) {

public int getDepth(Implementation impl) {
var procName = getName(impl);
var c = -1;
if (procUnrollDepth.TryGetValue(procName, out c)) {
if (procUnrollDepth.TryGetValue(procName, out var c)) {
return c;
}
return -1;
Expand Down Expand Up @@ -305,12 +304,12 @@ protected int TryDefineCount(CallCmd callCmd, Implementation impl)
return depth;
}

int countCall (CallCmd cmd) {
int callInlineDepth (CallCmd cmd) {
return QKeyValue.FindIntAttribute(cmd.Attributes, "inline", -1);
}

// first check the inline depth on the call command.
depth = countCall(callCmd);
depth = callInlineDepth(callCmd);
if (depth < 0) {
// if call cmd doesn't define the depth, then check the procedure.
impl.CheckIntAttribute("inline", ref depth);
Expand Down

0 comments on commit bc881cf

Please sign in to comment.