[all-commits] [llvm/llvm-project] 99e646: Do not construct std::string from nullptr

Yuriy Chernyshov via All-commits all-commits at lists.llvm.org
Thu Nov 5 15:23:50 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 99e64623ec9b31def9375753491cc6093c831809
      https://github.com/llvm/llvm-project/commit/99e64623ec9b31def9375753491cc6093c831809
  Author: Yuriy Chernyshov <georgthegreat at gmail.com>
  Date:   2020-11-05 (Thu, 05 Nov 2020)

  Changed paths:
    M llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp

  Log Message:
  -----------
  Do not construct std::string from nullptr

While I am trying to forbid such usages systematically in https://reviews.llvm.org/D79427 / P2166R0 to C++ standard, this PR fixes this (definitelly incorrect) usage in llvm.

This code is unreachable, so it could not cause any harm

Reviewed By: nikic, dblaikie

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




More information about the All-commits mailing list