From: Duncan Sands Date: Thu, 4 Aug 2011 16:01:54 +0000 (+0000) Subject: Fix a place that was clearly forgotten when the type legalization X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1203486d92bb1f9a82533ff0a4572d5a23fb5f9a;p=oota-llvm.git 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136881 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index 8daec8ee48e..d960d76840e 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -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: