Don't use PassInfo* as a type identifier for passes. Instead, use the address of...
[oota-llvm.git] / lib / Transforms / IPO / IPConstantPropagation.cpp
index 762935e38c2456e9a90ebf8706a92be71aad78d4..1b3cf7810cc68f6db9332d941f49f652cf2485eb 100644 (file)
@@ -35,7 +35,7 @@ namespace {
   ///
   struct IPCP : public ModulePass {
     static char ID; // Pass identification, replacement for typeid
-    IPCP() : ModulePass(&ID) {}
+    IPCP() : ModulePass(ID) {}
 
     bool runOnModule(Module &M);
   private: