Disable an xform that causes an infinite loop. This fixes PR1594
[oota-llvm.git] / lib / Transforms / Utils / LowerSelect.cpp
index fda26c9e1f1cc08d8d3a60647ae93978ad322b2f..317e84aa96f345e146c0668d86df67a0df4674d7 100644 (file)
@@ -33,8 +33,8 @@ namespace {
   class VISIBILITY_HIDDEN LowerSelect : public FunctionPass {
     bool OnlyFP;   // Only lower FP select instructions?
   public:
-    static const int ID; // Pass identifcation, replacement for typeid
-    LowerSelect(bool onlyfp = false) : FunctionPass((intptr_t)&ID), 
+    static char ID; // Pass identification, replacement for typeid
+    explicit LowerSelect(bool onlyfp = false) : FunctionPass((intptr_t)&ID), 
       OnlyFP(onlyfp) {}
 
     virtual void getAnalysisUsage(AnalysisUsage &AU) const {
@@ -50,7 +50,7 @@ namespace {
     bool runOnFunction(Function &F);
   };
 
-  const int LowerSelect::ID = 0;
+  char LowerSelect::ID = 0;
   RegisterPass<LowerSelect>
   X("lowerselect", "Lower select instructions to branches");
 }