mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-18 13:04:36 +03:00
Fixed a bug in Compiler when used with CodeInfo that doesn't specify any alignment
This commit is contained in:
@@ -129,9 +129,9 @@ CCFunc* CodeCompiler::newFunc(const FuncSignature& sign) noexcept {
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Override the natural stack alignment of the calling convention to what's
|
// If the CodeInfo guarantees higher alignment honor it.
|
||||||
// specified by CodeInfo.
|
if (_codeInfo.getStackAlignment() > func->_funcDetail._callConv.getNaturalStackAlignment())
|
||||||
func->_funcDetail._callConv.setNaturalStackAlignment(_codeInfo.getStackAlignment());
|
func->_funcDetail._callConv.setNaturalStackAlignment(_codeInfo.getStackAlignment());
|
||||||
|
|
||||||
// Allocate space for function arguments.
|
// Allocate space for function arguments.
|
||||||
func->_args = nullptr;
|
func->_args = nullptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user