<div dir="ltr"><div>Hi,</div><div><br></div><div>I am trying to understand some LLVM IR Clang generates. Since I cannot publish the source code, I can only describe what I see and my guess.</div><div><br></div><div>This is the main() function of some code, which allocates some memory and sequentially calls a list of functions. There are no explicit exception handling code in the source code, however, <b>for each function call</b>, the LLVM IR for the function call becomes "invoke ... unwind ...". I am wondering what causes the generation of such code. One thing I noticed in the source code is the exit() call in main().</div><div><br></div><div>If I compile with -fno-exceptions, all function calls become normal "call", without any "unwind" attribute.</div><br clear="all"><div><br></div>Thanks<br><div class="gmail_signature"><div dir="ltr">- Welson<br><div><div><div><br></div></div></div></div></div>
</div>