Fix clang warnings / move some plat code into poly.
This commit is contained in:
@@ -26,7 +26,7 @@ using alloy::runtime::Function;
|
||||
using alloy::runtime::FunctionInfo;
|
||||
|
||||
IVMAssembler::IVMAssembler(Backend* backend)
|
||||
: source_map_arena_(128 * 1024), Assembler(backend) {}
|
||||
: Assembler(backend), source_map_arena_(128 * 1024) {}
|
||||
|
||||
IVMAssembler::~IVMAssembler() {
|
||||
alloy::tracing::WriteEvent(EventType::AssemblerDeinit({}));
|
||||
@@ -94,7 +94,7 @@ int IVMAssembler::Assemble(FunctionInfo* symbol_info, HIRBuilder* builder,
|
||||
|
||||
auto i = block->instr_head;
|
||||
while (i) {
|
||||
int result = TranslateIntCodes(ctx, i);
|
||||
TranslateIntCodes(ctx, i);
|
||||
i = i->next;
|
||||
}
|
||||
block = block->next;
|
||||
|
||||
@@ -23,12 +23,12 @@ using alloy::runtime::FunctionInfo;
|
||||
using alloy::runtime::ThreadState;
|
||||
|
||||
IVMFunction::IVMFunction(FunctionInfo* symbol_info)
|
||||
: register_count_(0),
|
||||
: Function(symbol_info),
|
||||
register_count_(0),
|
||||
intcode_count_(0),
|
||||
intcodes_(0),
|
||||
source_map_count_(0),
|
||||
source_map_(0),
|
||||
Function(symbol_info) {}
|
||||
source_map_(0) {}
|
||||
|
||||
IVMFunction::~IVMFunction() {
|
||||
xe_free(intcodes_);
|
||||
|
||||
Reference in New Issue
Block a user