summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-05-29 02:32:43 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-05-29 02:32:43 +0000
commit3ccc7b46547b6ff56a4397e70f99bf17475eda48 (patch)
tree67d17fd6658c62b1d3dcd260f7615556777d94ad
parent7dbb2d6f160d69a0513afe48e7e5ad8861bb4ab2 (diff)
downloadllvm-3ccc7b46547b6ff56a4397e70f99bf17475eda48.tar.gz
llvm-3ccc7b46547b6ff56a4397e70f99bf17475eda48.tar.bz2
llvm-3ccc7b46547b6ff56a4397e70f99bf17475eda48.tar.xz
Replace an old C-style cast with a C++ cast (squelch warning)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28533 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Assembly/PrintModulePass.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Assembly/PrintModulePass.h b/include/llvm/Assembly/PrintModulePass.h
index fab59cbc18..2a576d4d51 100644
--- a/include/llvm/Assembly/PrintModulePass.h
+++ b/include/llvm/Assembly/PrintModulePass.h
@@ -66,7 +66,7 @@ public:
// it's processed.
//
bool runOnFunction(Function &F) {
- (*Out) << Banner << (Value&)F;
+ (*Out) << Banner << static_cast<Value&>(F);
return false;
}