diff options
author | Dan Gohman <gohman@apple.com> | 2008-06-24 17:47:37 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-06-24 17:47:37 +0000 |
commit | 78f39da1e8586a0ab80e4c8d1139b36a5f17fa49 (patch) | |
tree | 50dd73caa3c377ca7edba4ed657982c14758b13d | |
parent | 4f37660fa1c1c8daf967613d9dda186b73ba62a3 (diff) |
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
-rw-r--r-- | lib/VMCore/Verifier.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 0ce7d4c27c..4ff2447621 100644 --- a/lib/VMCore/Verifier.cpp +++ b/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(); |