IRBuilder
Get the slidesNote on LLVM IRBuilder API (Video vs. Modern LLVM)
In the video (recorded with an earlier LLVM version),
Builder.CreateLoad(result)inferred the pointee type from the typed pointer. With opaque pointers in modern LLVM (LLVM 18 used in this course),CreateLoadrequires the loaded type explicitly:Builder.CreateLoad(llvm_type(ite.get_type()), result).The downloadable slides have been updated to reflect the modern syntax.