Skip to content

Commit 9456e7f

Browse files
committed
[ORC] Silence unused variable warnings.
1 parent 9bd836a commit 9456e7f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/ExecutionEngine/Orc/TargetProcess/UnwindInfoManager.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ static int (*RemoveFindDynamicUnwindSections)(void *) = nullptr;
5959

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

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

0 commit comments

Comments
 (0)