mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-01 15:40:55 +03:00
Fixed a crash in DtoDefineFunction.
This commit is contained in:
parent
57866a8359
commit
16b0fe136e
1 changed files with 2 additions and 1 deletions
|
@ -846,7 +846,8 @@ void DtoDefineFunction(FuncDeclaration* fd)
|
||||||
// std::cout << *func << std::endl;
|
// std::cout << *func << std::endl;
|
||||||
|
|
||||||
// erase alloca point
|
// erase alloca point
|
||||||
allocaPoint->eraseFromParent();
|
if (allocaPoint->getParent())
|
||||||
|
allocaPoint->eraseFromParent();
|
||||||
allocaPoint = 0;
|
allocaPoint = 0;
|
||||||
gIR->func()->allocapoint = 0;
|
gIR->func()->allocapoint = 0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue