mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-14 03:43:13 +01:00
Make sure functions containing inline asm are never inlined to avoid
duplicated labels.
This commit is contained in:
@@ -450,6 +450,9 @@ void AsmBlockStatement::toIR(IRState* p)
|
||||
LOG_SCOPE;
|
||||
Logger::println("BEGIN ASM");
|
||||
|
||||
// disable inlining
|
||||
gIR->func()->setNeverInline();
|
||||
|
||||
// create asm block structure
|
||||
assert(!p->asmBlock);
|
||||
IRAsmBlock* asmblock = new IRAsmBlock;
|
||||
|
||||
Reference in New Issue
Block a user