HomePhabricator

[CodeGen] Modify the refineIndexType(...)'s code to fix a bug in D90942.

Authored by yubing on Dec 6 2020, 4:35 PM.

Description

[CodeGen] Modify the refineIndexType(...)'s code to fix a bug in D90942.

In previous code, when refineIndexType(...) is called and Index is undef, Index.getOperand(0) will raise a assertion fail.

Reviewed By: pengfei

Differential Revision: https://reviews.llvm.org/D92548