HomePhabricator

Check for nullptr before dereferencing in translateModuleToLLVMIR()

Authored by mehdi_amini on Nov 5 2020, 8:07 PM.

Description

Check for nullptr before dereferencing in translateModuleToLLVMIR()

This is defensive with respect to invocations of this API with an IR
that isn't ready to be converted to LLVM IR.

Details