[llvm] r227575 - Fix a warning introduced by r227557 due to a default label in a fully

Chandler Carruth chandlerc at gmail.com
Fri Jan 30 05:30:43 PST 2015


Author: chandlerc
Date: Fri Jan 30 07:30:43 2015
New Revision: 227575

URL: http://llvm.org/viewvc/llvm-project?rev=227575&view=rev
Log:
Fix a warning introduced by r227557 due to a default label in a fully
covering switch.

Modified:
    llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp

Modified: llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp?rev=227575&r1=227574&r2=227575&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp Fri Jan 30 07:30:43 2015
@@ -744,7 +744,6 @@ public:
         return B.CreateGEP(StartValue, Index);
 
       case IK_NoInduction:
-      default:
         return nullptr;
       }
     }





More information about the llvm-commits mailing list