[all-commits] [llvm/llvm-project] e62912: [LLParser] Delete temp CallInst when error occurs

Qiu Chaofan via All-commits all-commits at lists.llvm.org
Mon Jun 15 20:48:34 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e62912b19063937a55e10064266888c0534b2211
      https://github.com/llvm/llvm-project/commit/e62912b19063937a55e10064266888c0534b2211
  Author: Qiu Chaofan <qiucofan at cn.ibm.com>
  Date:   2020-06-16 (Tue, 16 Jun 2020)

  Changed paths:
    M llvm/lib/AsmParser/LLParser.cpp
    A llvm/test/CodeGen/Generic/fast-math-flags.ll

  Log Message:
  -----------
  [LLParser] Delete temp CallInst when error occurs

Only functions with floating-point return type accepts fast-math flags.
When adding such flags to function returning integer, we'll see a crash,
because there's still an undeleted value referencing the argument. This
patch manually removes the temporary instruction when error occurs.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D78355




More information about the All-commits mailing list