[all-commits] [llvm/llvm-project] 2af37c: Check for nullptr before dereferencing in translat...

Mehdi Amini via All-commits all-commits at lists.llvm.org
Thu Nov 5 20:09:42 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2af37cf7ffc43daa9523f209050761039c29964b
      https://github.com/llvm/llvm-project/commit/2af37cf7ffc43daa9523f209050761039c29964b
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2020-11-06 (Fri, 06 Nov 2020)

  Changed paths:
    M mlir/lib/Target/LLVMIR/ConvertToLLVMIR.cpp

  Log Message:
  -----------
  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.




More information about the All-commits mailing list