Skip to content

Commit

Permalink
Bug 1623071 - Fix a -Wunused-private-field warning on beta. r=iain
Browse files Browse the repository at this point in the history
  • Loading branch information
jandem committed Mar 17, 2020
1 parent 18c1568 commit 2be6442
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/src/jit/CacheIR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include "mozilla/DebugOnly.h"
#include "mozilla/FloatingPoint.h"
#include "mozilla/Unused.h"

#include "jit/BaselineCacheIRCompiler.h"
#include "jit/BaselineIC.h"
Expand Down Expand Up @@ -4610,6 +4611,9 @@ void InstanceOfIRGenerator::trackAttached(const char* name) {
sp.valueProperty("lhs", lhsVal_);
sp.valueProperty("rhs", ObjectValue(*rhsObj_));
}
#else
// Silence Clang -Wunused-private-field warning.
mozilla::Unused << lhsVal_;
#endif
}

Expand Down

0 comments on commit 2be6442

Please sign in to comment.