LLVMContext

Some of the IR constructors require an LLVMContext parameter.

Should this just come from say Module M.getContext() ???

Tia.

Reed

Some of the IR constructors require an LLVMContext parameter.

Should this just come from say Module M.getContext() ???

In general, yes. When building LLVM IR, you want to create objects in the same context as the Module to which they will belong.

-- John T.