OSDN Git Service

[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)
commitade60aa45298dd1e01fb3d8a158dab878cfe9ab6
tree47861505dc2eca5e64727bb910926e4449b6532a
parent1147bf697d57242b857f526307f9fd0cce6a2042
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@277161 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/LowLevelType.h
unittests/CodeGen/LowLevelTypeTest.cpp