forked from OSchip/llvm-project
parent
869529c58c
commit
124095bb18
|
@ -870,7 +870,7 @@ void CGDebugInfo::EmitRegionStart(llvm::Function *Fn, CGBuilderTy &Builder) {
|
||||||
llvm::DIDescriptor D;
|
llvm::DIDescriptor D;
|
||||||
if (!RegionStack.empty())
|
if (!RegionStack.empty())
|
||||||
D = RegionStack.back();
|
D = RegionStack.back();
|
||||||
D = DebugFactory.CreateBlock(D);
|
D = DebugFactory.CreateLexicalBlock(D);
|
||||||
RegionStack.push_back(D);
|
RegionStack.push_back(D);
|
||||||
DebugFactory.InsertRegionStart(D, Builder.GetInsertBlock());
|
DebugFactory.InsertRegionStart(D, Builder.GetInsertBlock());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue