Fixed few warnings

This commit is contained in:
kobalicek
2020-04-13 21:45:55 +02:00
parent 1491d5f2ea
commit 304bf43a23
2 changed files with 4 additions and 5 deletions

View File

@@ -685,9 +685,8 @@ public:
struct LiveRegData {
uint32_t id;
inline LiveRegData() noexcept : id(BaseReg::kIdBad) {}
inline explicit LiveRegData(uint32_t id) noexcept : id(id) {}
inline explicit LiveRegData(const LiveRegData& other) noexcept : id(other.id) {}
inline explicit LiveRegData(uint32_t id = BaseReg::kIdBad) noexcept : id(id) {}
inline LiveRegData(const LiveRegData& other) noexcept : id(other.id) {}
inline void init(const LiveRegData& other) noexcept { id = other.id; }

View File

@@ -1216,9 +1216,9 @@ ASMJIT_FAVOR_SPEED Error RAPass::binPack(uint32_t group) noexcept {
workReg->markStackPreferred();
ASMJIT_RA_LOG_COMPLEX({
uint32_t numWorkRegs = workRegs.size();
uint32_t count = workRegs.size();
sb.clear();
sb.appendFormat(" Unassigned (%u): ", numWorkRegs);
sb.appendFormat(" Unassigned (%u): ", count);
for (i = 0; i < numWorkRegs; i++) {
RAWorkReg* workReg = workRegs[i];
if (i) sb.appendString(", ");