Allow copyRegToReg to emit cross register classes copies.
[oota-llvm.git] / include / llvm / Pass.h
index f11c1aa9742f21a78e99ba3918af58bd6ccfca5d..e38ee8fda30784c3ed35d6139b60523f6e25d7ed 100644 (file)
@@ -170,7 +170,7 @@ public:
 
   template<typename AnalysisClass>
   static const PassInfo *getClassPassInfo() {
-    return lookupPassInfo((intptr_t)&AnalysisClass::ID);
+    return lookupPassInfo(intptr_t(&AnalysisClass::ID));
   }
 
   // lookupPassInfo - Return the pass info object for the specified pass class,
@@ -262,7 +262,7 @@ public:
 
   /// ImmutablePasses are never run.
   ///
-  virtual bool runOnModule(Module &M) { return false; }
+  bool runOnModule(Module &M) { return false; }
 
   explicit ImmutablePass(intptr_t pid) : ModulePass(pid) {}
   // Force out-of-line virtual method.