[GlobalISel] Fix LLT::unsized to match LLT(LabelTy).
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Fri, 29 Jul 2016 16:11:02 +0000 (16:11 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Fri, 29 Jul 2016 16:11:02 +0000 (16:11 +0000)
commit8292bdf73551c66ce2b9f22629c1a06628b5f777
tree7ac80eb407767e5cf162bfd731c823058e40e76c
parent9f986bf3a9185570f73d86be8067926686f2efac
[GlobalISel] Fix LLT::unsized to match LLT(LabelTy).

When coming from an IR label type, we set a 0 NumElements, but not
when constructing an LLT using unsized(), causing comparisons to fail.

Pick one variant and fix the other.

llvm-svn: 277161
llvm/include/llvm/CodeGen/LowLevelType.h
llvm/unittests/CodeGen/LowLevelTypeTest.cpp