[llvm-commits] [llvm] r136881 - /llvm/trunk/include/llvm/Target/TargetLowering.h

Duncan Sands baldrick at free.fr
Thu Aug 4 09:01:54 PDT 2011


Author: baldrick
Date: Thu Aug  4 11:01:54 2011
New Revision: 136881

URL: http://llvm.org/viewvc/llvm-project?rev=136881&view=rev
Log:
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.

Modified:
    llvm/trunk/include/llvm/Target/TargetLowering.h

Modified: llvm/trunk/include/llvm/Target/TargetLowering.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetLowering.h?rev=136881&r1=136880&r2=136881&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Target/TargetLowering.h (original)
+++ llvm/trunk/include/llvm/Target/TargetLowering.h Thu Aug  4 11:01:54 2011
@@ -265,9 +265,9 @@
     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:





More information about the llvm-commits mailing list