Replace an old C-style cast with a C++ cast (squelch warning)
authorReid Spencer <rspencer@reidspencer.com>
Mon, 29 May 2006 02:32:43 +0000 (02:32 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 29 May 2006 02:32:43 +0000 (02:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28533 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Assembly/PrintModulePass.h

index fab59cbc1885a1f477c9401d2caa6865e8850ede..2a576d4d5127226444e1b010067f94f741547b17 100644 (file)
@@ -66,7 +66,7 @@ public:
   // it's processed.
   //
   bool runOnFunction(Function &F) {
-    (*Out) << Banner << (Value&)F;
+    (*Out) << Banner << static_cast<Value&>(F);
     return false;
   }