[all-commits] [llvm/llvm-project] 67464d: [DebugInfo] Only perform TypeSize -> unsigned cast...

Joe Ellis via All-commits all-commits at lists.llvm.org
Thu Feb 11 05:54:42 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 67464dfe366b533045dc3c15a069d0768a20629f
      https://github.com/llvm/llvm-project/commit/67464dfe366b533045dc3c15a069d0768a20629f
  Author: Joe Ellis <joe.ellis at arm.com>
  Date:   2021-02-11 (Thu, 11 Feb 2021)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

  Log Message:
  -----------
  [DebugInfo] Only perform TypeSize -> unsigned cast when necessary

This commit moves a line in SelectionDAGBuilder::handleDebugValue to
avoid implicitly casting a TypeSize object to an unsigned earlier than
necessary. It was possible that we bail out of the loop before the value
is ever used, which means we could create a superfluous TypeSize
warning.

Reviewed By: DavidTruby

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




More information about the All-commits mailing list