[all-commits] [llvm/llvm-project] ee1d5f: [MC] Check if register is non-null before calling ...
Sergei Barannikov via All-commits
all-commits at lists.llvm.org
Wed May 24 22:53:40 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ee1d5f637286bda762de76dfc33143abd52c5460
https://github.com/llvm/llvm-project/commit/ee1d5f637286bda762de76dfc33143abd52c5460
Author: Sergei Barannikov <barannikov88 at gmail.com>
Date: 2023-05-25 (Thu, 25 May 2023)
Changed paths:
M bolt/lib/Core/MCPlusBuilder.cpp
M llvm/lib/MC/MCInstrDesc.cpp
Log Message:
-----------
[MC] Check if register is non-null before calling isSubRegisterEq (NFCI)
D151036 adds an assertions that prohibits iterating over sub- and
super-registers of a null register. This is already the case when
iterating over register units of a null register, and worked by
accident for sub- and super-registers.
Reviewed By: Amir
Differential Revision: https://reviews.llvm.org/D151285
More information about the All-commits
mailing list