Make single-argument ctors explicit to avoid tricky bugs :)
[oota-llvm.git] / include / llvm / Pass.h
index ea129e0fc364c7d483ed0ee918cb48e9416e441e..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,