[llvm-commits] CVS: llvm/include/llvm/Assembly/PrintModulePass.h

Reid Spencer reid at x10sys.com
Sun May 28 19:32:55 PDT 2006



Changes in directory llvm/include/llvm/Assembly:

PrintModulePass.h updated: 1.18 -> 1.19
---
Log message:

Replace an old C-style cast with a C++ cast (squelch warning)


---
Diffs of the changes:  (+1 -1)

 PrintModulePass.h |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/include/llvm/Assembly/PrintModulePass.h
diff -u llvm/include/llvm/Assembly/PrintModulePass.h:1.18 llvm/include/llvm/Assembly/PrintModulePass.h:1.19
--- llvm/include/llvm/Assembly/PrintModulePass.h:1.18	Thu Apr 21 15:19:05 2005
+++ llvm/include/llvm/Assembly/PrintModulePass.h	Sun May 28 21:32:43 2006
@@ -66,7 +66,7 @@
   // it's processed.
   //
   bool runOnFunction(Function &F) {
-    (*Out) << Banner << (Value&)F;
+    (*Out) << Banner << static_cast<Value&>(F);
     return false;
   }
 






More information about the llvm-commits mailing list