Skip to content

Commit

Permalink
Detect local variable from load inst
Browse files Browse the repository at this point in the history
  • Loading branch information
ahueck committed Dec 19, 2024
1 parent 4cf05ce commit a630ca3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/type/DIFinder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ std::optional<llvm::DILocalVariable*> find_local_variable(const llvm::Instructio
break;
}
}
if (auto load = llvm::dyn_cast<llvm::LoadInst>(user)) {
result = find_di_var(load);
if (result) {
break;
}
}
}
}
return result;
Expand Down

0 comments on commit a630ca3

Please sign in to comment.