)]}'
{
  "commit": "5ca40fa101df2b75e10c0c260192b653120a9b1d",
  "tree": "d38eace299b2dad55b497d23ce3aabb96bb28539",
  "parents": [
    "c267928700778f01870094009fe6afdce79635a6"
  ],
  "author": {
    "name": "yonghong-song",
    "email": "yhs@fb.com",
    "time": "Tue Jul 22 16:37:10 2025 -0700"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Jul 22 16:37:10 2025 -0700"
  },
  "message": "[BPF] Fix build warnings due to a static var in header file (#150128)\n\nSimon Pilgrim ([1]) and Anton reported that the following warning will\nappear when building clang compiler:\n```\nIn file included from .../llvm-project/llvm/lib/Target/BPF/BPFASpaceCastSimplifyPass.cpp:9: .../llvm-project/llvm/lib/Target/BPF/BPF.h:25:20: warning: ‘llvm::BPF_TRAP’ defined but not used [-Wunused-variable]\n   25 | static const char *BPF_TRAP \u003d \"__bpf_trap\";\n      |                    ^~~~~~~~\n...\nIn file included from .../llvm-project/llvm/lib/Target/BPF/MCTargetDesc/BPFInstPrinter.cpp:14:\n.../llvm-project/llvm/lib/Target/BPF/BPF.h:25:20: warning: ‘llvm::BPF_TRAP’ defined but not used [-Wunused-variable]\n   25 | static const char *BPF_TRAP \u003d \"__bpf_trap\";\n      |                    ^~~~~~~~\n...\n```\nInstead of using static const variable, use macro to silence warnings.\n\n  [1] https://github.com/llvm/llvm-project/pull/131731",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "5d49949ddea25a70378e9c0accbcdca53e63319b",
      "old_mode": 33188,
      "old_path": "llvm/lib/Target/BPF/BPF.h",
      "new_id": "7faae8b725b4331ea599dbd079859e27e07cf56b",
      "new_mode": 33188,
      "new_path": "llvm/lib/Target/BPF/BPF.h"
    }
  ]
}
