Also move MangleCtx when moving some lazy emission states in
CodeGenModule. Without this patch clang-repl hits an invalid address
access when passing -Xcc -O2 flag.
Signed-off-by: Jun Zhang <jun@junz.org>
Differential D130420
[CodeGen] Consider MangleCtx when move lazy emission States junaire on Jul 23 2022, 5:28 AM. Authored by
Details Also move MangleCtx when moving some lazy emission states in Signed-off-by: Jun Zhang <jun@junz.org>
Diff Detail
Event TimelineComment Actions I think this seems reasonable. I suspect we'll need to do more plumbing here if we need to support snapshotting / resetting to a snapshot, but this probably isn't the only place, and the moves we're doing aren't set up for that either. |