Skip to content

Commit

Permalink
[ORC] Silence unused variable warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
lhames committed Feb 13, 2025
1 parent 9bd836a commit 9456e7f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ static int (*RemoveFindDynamicUnwindSections)(void *) = nullptr;

UnwindInfoManager::~UnwindInfoManager() {
if (int Err = RemoveFindDynamicUnwindSections((void *)&findSections)) {
(void)Err; // Silence unused variable warning in release builds.
LLVM_DEBUG({
dbgs() << "Failed call to " << RemoveFnName << ": error = " << Err
<< "\n";
Expand Down Expand Up @@ -86,6 +87,7 @@ bool UnwindInfoManager::TryEnable() {
Instance.reset(new UnwindInfoManager());

if (auto Err = AddFn((void *)&findSections)) {
(void)Err; // Silence unused variable warning in release builds.
LLVM_DEBUG({
dbgs() << "Failed call to " << AddFnName << ": error = " << Err << "\n";
});
Expand Down

0 comments on commit 9456e7f

Please sign in to comment.