mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-17 21:33:13 +01:00
Fixed a crash in DtoDefineFunction.
This commit is contained in:
@@ -846,7 +846,8 @@ void DtoDefineFunction(FuncDeclaration* fd)
|
||||
// std::cout << *func << std::endl;
|
||||
|
||||
// erase alloca point
|
||||
allocaPoint->eraseFromParent();
|
||||
if (allocaPoint->getParent())
|
||||
allocaPoint->eraseFromParent();
|
||||
allocaPoint = 0;
|
||||
gIR->func()->allocapoint = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user