[all-commits] [llvm/llvm-project] 9da514: [DebugInfo][InstrRef] Fix Wdangling-else warning i...

Jeremy Morse via All-commits all-commits at lists.llvm.org
Tue Oct 19 02:18:42 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9da51402f477dd550847fac542c99416c5275388
      https://github.com/llvm/llvm-project/commit/9da51402f477dd550847fac542c99416c5275388
  Author: Luke Benes <lukebenes at hotmail.com>
  Date:   2021-10-19 (Tue, 19 Oct 2021)

  Changed paths:
    M llvm/unittests/CodeGen/InstrRefLDVTest.cpp

  Log Message:
  -----------
  [DebugInfo][InstrRef] Fix Wdangling-else warning in InstrRefLDVTest

Fix a dangling else that gcc-11 warned about. The EXPECT_EQ macro
expands to an if-else, so the whole construction contains a hidden
dangling else.

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




More information about the All-commits mailing list