Fix a place that was clearly forgotten when the type legalization
authorDuncan Sands <baldrick@free.fr>
Thu, 4 Aug 2011 16:01:54 +0000 (16:01 +0000)
committerDuncan Sands <baldrick@free.fr>
Thu, 4 Aug 2011 16:01:54 +0000 (16:01 +0000)
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

include/llvm/Target/TargetLowering.h

index 8daec8ee48ecb9a12386ae9567d245a0a02e60fc..d960d76840e9b26a8b17d48afae4b48e11b23202 100644 (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: