Use const_cast instead of a C-style cast.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52684 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2008-06-24 17:47:37 +00:00
parent 4f37660fa1
commit 78f39da1e8

View File

@ -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();