aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}