mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 23:48:56 +00:00
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:
parent
4f37660fa1
commit
78f39da1e8
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user