OSDN Git Service

GlobalISel: check type size before getZExtValue()ing it.
authorTim Northover <t.p.northover@gmail.com>
Mon, 1 Feb 2021 12:43:33 +0000 (12:43 +0000)
committerAmara Emerson <amara@apple.com>
Fri, 9 Apr 2021 18:19:39 +0000 (11:19 -0700)
commitfa0971b87fb2c9d14d1bba2551e61f02f18f329b
tree3707c8b0d1d174616260a589cc6c6db8254d28c3
parentd28af7c654d8db0b68c175db5ce212d74fb5e9bc
GlobalISel: check type size before getZExtValue()ing it.

Otherwise getZExtValue() asserts.

(cherry picked from commit c2b322fc19e829162ed4c7dcd04d9e9b2cd4e66c)
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
llvm/test/CodeGen/AArch64/GlobalISel/huge-switch.ll [new file with mode: 0644]