[PATCH] D42984: GlobalISel: Always check operand types when executing match table
Volkan Keles via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 6 14:11:14 PST 2018
volkan created this revision.
volkan added a reviewer: dsanders.
Herald added subscribers: kristof.beyls, rovka.
Some of the commands tries to get the register without checking
if the specified operands is a register and causing crash. All commands
should check the type of the operand first and reject if the type is
not expected.
https://reviews.llvm.org/D42984
Files:
include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h
test/CodeGen/X86/GlobalISel/avoid-matchtable-crash.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42984.133076.patch
Type: text/x-patch
Size: 4758 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180206/01fd0a79/attachment.bin>
More information about the llvm-commits
mailing list