[all-commits] [llvm/llvm-project] fc2850: [IR2VecTest] Avoid magic constants

Alexander Richardson via All-commits all-commits at lists.llvm.org
Mon Jul 28 09:51:13 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fc2850fc7657c2ac8bff48818e797929f46168fc
      https://github.com/llvm/llvm-project/commit/fc2850fc7657c2ac8bff48818e797929f46168fc
  Author: Alexander Richardson <alexrichardson at google.com>
  Date:   2025-07-28 (Mon, 28 Jul 2025)

  Changed paths:
    M llvm/include/llvm/Analysis/IR2Vec.h
    M llvm/unittests/Analysis/IR2VecTest.cpp

  Log Message:
  -----------
  [IR2VecTest] Avoid magic constants

Instead make the members of Vocabulary public. This was causing test
failures with https://github.com/llvm/llvm-project/pull/139357.

Reviewed By: svkeerthy, boomanaiden154

Pull Request: https://github.com/llvm/llvm-project/pull/150878



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list