Use const_cast instead of a C-style cast.
authorDan Gohman <gohman@apple.com>
Tue, 24 Jun 2008 17:47:37 +0000 (17:47 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 24 Jun 2008 17:47:37 +0000 (17:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52684 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Verifier.cpp

index 0ce7d4c27ce921395c97491ae6f23f28ad33a560..4ff2447621e158979e934c7801e55e0b7395065e 100644 (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();