mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-29 22:39:31 +00:00
[WinEH] Fix problem with landing pad return values used in PHI nodes during outlining.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235358 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d3c29ac587
commit
e0b5195703
@ -904,6 +904,10 @@ bool WinEHPrepare::outlineHandler(ActionHandler *Action, Function *SrcFn,
|
||||
++II;
|
||||
}
|
||||
|
||||
// The landing pad value may be used by PHI nodes. It will ultimately be
|
||||
// eliminated, but we need it in the map for intermediate handling.
|
||||
VMap[LPad] = UndefValue::get(LPad->getType());
|
||||
|
||||
// Skip over PHIs and, if applicable, landingpad instructions.
|
||||
II = StartBB->getFirstInsertionPt();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user