[PATCH] D24417: [Coroutines] Fix dbg information handling in coro-split.

Gor Nishanov via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 9 11:58:05 PDT 2016


GorNishanov created this revision.
GorNishanov added a reviewer: majnemer.
GorNishanov added a subscriber: llvm-commits.
Herald added a subscriber: mehdi_amini.

Without the fix, if there was a function inlined into the coroutine with debug information, CloneFunctionInto(NewF, &F, VMap, /*ModuleLevelChanges=*/true, Returns); would duplicate all of the debug information including the DICompileUnit.

We know use VMap to indicate that debug metadata for a File, Unit and FunctionType should not be duplicated when we creating clones that will become f.resume, f.destroy and f.cleanup.

https://reviews.llvm.org/D24417

Files:
  lib/Transforms/Coroutines/CoroFrame.cpp
  lib/Transforms/Coroutines/CoroSplit.cpp
  test/Transforms/Coroutines/coro-split-dbg.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24417.70880.patch
Type: text/x-patch
Size: 9914 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160909/c1a61947/attachment.bin>


More information about the llvm-commits mailing list