[all-commits] [llvm/llvm-project] 752faf: [NFC] Fix -Wsometimes-uninitialized

Jordan Rupprecht via All-commits all-commits at lists.llvm.org
Wed Jan 13 20:38:33 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 752fafda3dbf1f4885c64408a13ddb67c91ccb13
      https://github.com/llvm/llvm-project/commit/752fafda3dbf1f4885c64408a13ddb67c91ccb13
  Author: Jordan Rupprecht <rupprecht at google.com>
  Date:   2021-01-13 (Wed, 13 Jan 2021)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64InstrInfo.cpp

  Log Message:
  -----------
  [NFC] Fix -Wsometimes-uninitialized

After 49142991a685bd427d7e877c29c77371dfb7634c, clang detects that MUL may be uninitialized. Set it to nullptr to suppress this check.

Adding an assert to check that it is ultimately set fails two test cases. Since this is not a new issue, leave the assertion commented out until a code owner can fix the bug. The two failing test cases are noted in the assertion comment.




More information about the All-commits mailing list