[PATCH] D158725: [NFC][AMDGPU] Guard the custom fixups kind array from invalid access
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 24 05:21:07 PDT 2023
arsenm added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUAsmBackend.cpp:188
+ assert(unsigned(Kind - FirstTargetFixupKind) < getNumFixupKinds() &&
+ "Invalid kind!");
----------------
Isn’t this equivalent to the previous bounds check?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158725/new/
https://reviews.llvm.org/D158725
More information about the llvm-commits
mailing list