Merge pull request #1598 from Syniurge/llvm38-debuginfofix-master

Debug info generation fixes for LLVM >= 3.8
This commit is contained in:
Johan Engelen 2016-07-18 15:12:30 +02:00 committed by GitHub
commit a8761617ac
10 changed files with 161 additions and 15 deletions

View file

@ -837,6 +837,8 @@ public:
exnObj = DtoAlloca(var->type, "exnObj");
}
irs->scope() = save;
irs->DBuilder.EmitStopPoint(ctch->loc); // re-set debug loc after the
// SetInsertPoint(allocaInst) call
} else if (ctch->type) {
// catch without var
exnObj = DtoAlloca(ctch->type, "exnObj");