<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Dear community</p>
<p>I'm working on a compiler for a in-house DSP developped with LLVM 8.0. <br>
Now I'm trying to migrate the LLVM base to the latest one (LLVM-13), but I proceed by steps and first I migrate to LLVM-9.0<br>
</p>
<p><br>
</p>
<p>In my code, I use the "getOrInsertFunction" method which crashes on LLVM9.0:</p>
<p>- first call ('insert') -> ok</p>
<p>- second call on an existing funcion ('get') -> the function exists but it seems that the Context environment is lost for the FunctionType variable (getContext is empty)<br>
</p>
<p><br>
</p>
<p>I checked that after the first call of '<span>getOrInsertFunction</span>', the context is correct.
<br>
</p>
<p><br>
</p>
<p>Has anyone faced this issue ? Is it resolved in a higher version of LLVM ? <br>
</p>
<p>Thank for your help !</p>
<p><br>
</p>
<p>-------------------<br>
</p>
<p>Julien Schmitt<br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, "EmojiFont", "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<table class="ms-rteTable-default" style="border-collapse:collapse; border:1px solid rgb(198,198,198); table-layout:fixed" cellspacing="0">
<tbody>
<tr class="ms-rteTableEvenRow-default" style="border-collapse:collapse; border:1px solid rgb(198,198,198)">
<td class="ms-rteTableEvenCol-default" style="border-collapse:collapse; border:1px solid rgb(198,198,198); width:92px" align="center">
<br>
</td>
<td class="ms-rteTableOddCol-default" colspan="1" style="border-collapse:collapse; border:1px solid rgb(198,198,198); width:73px" align="center">
<br>
</td>
<td class="ms-rteTableEvenCol-default" style="border-collapse:collapse; border:1px solid rgb(198,198,198); width:254.167px">
<br>
</td>
</tr>
<tr class="ms-rteTableOddRow-default" style="border-collapse:collapse; border:1px solid rgb(198,198,198)">
<td class="ms-rteTableEvenCol-default" rowspan="1" colspan="2" style="border-collapse:collapse; border:1px solid rgb(198,198,198)" align="center">
<br>
</td>
<td class="ms-rteTableOddCol-default" rowspan="1" style="border-collapse:collapse; border:1px solid rgb(198,198,198)">
<br>
</td>
</tr>
</tbody>
</table>
<br>
<br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>