Fix a place that was clearly forgotten when the type legalization

logic moved over to its own enum.  Noticed by Andrey Karpov with
the PVS-studio tool.

llvm-svn: 136881
This commit is contained in:
Duncan Sands 2011-08-04 16:01:54 +00:00
parent 2da6e6a1d8
commit b034709948

View File

@ -265,9 +265,9 @@ public:
assert(!VT.isVector());
while (true) {
switch (getTypeAction(Context, VT)) {
case Legal:
case TypeLegal:
return VT;
case Expand:
case TypeExpandInteger:
VT = getTypeToTransformTo(Context, VT);
break;
default: