summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-06-24 17:47:37 +0000
committerDan Gohman <gohman@apple.com>2008-06-24 17:47:37 +0000
commit61163850afeb9382cda4e1d3259c752642eace22 (patch)
tree0dfbd1d1ea25b178c6aca713702b32eb05a91f40 /llvm/lib
parente1789e378342e99dff498fb1720a0b32c97e797c (diff)
downloadbcm5719-llvm-61163850afeb9382cda4e1d3259c752642eace22.tar.gz
bcm5719-llvm-61163850afeb9382cda4e1d3259c752642eace22.zip
Use const_cast instead of a C-style cast.
llvm-svn: 52684
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/Verifier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Verifier.cpp b/llvm/lib/VMCore/Verifier.cpp
index 0ce7d4c27ce..4ff2447621e 100644
--- a/llvm/lib/VMCore/Verifier.cpp
+++ b/llvm/lib/VMCore/Verifier.cpp
@@ -1504,7 +1504,7 @@ bool llvm::verifyModule(const Module &M, VerifierFailureAction action,
PassManager PM;
Verifier *V = new Verifier(action);
PM.add(V);
- PM.run((Module&)M);
+ PM.run(const_cast<Module&>(M));
if (ErrorInfo && V->Broken)
*ErrorInfo = V->msgs.str();
OpenPOWER on IntegriCloud