[llvm-commits] [llvm] r52684 - /llvm/trunk/lib/VMCore/Verifier.cpp
Dan Gohman
gohman at apple.com
Tue Jun 24 10:47:37 PDT 2008
Author: djg
Date: Tue Jun 24 12:47:37 2008
New Revision: 52684
URL: http://llvm.org/viewvc/llvm-project?rev=52684&view=rev
Log:
Use const_cast instead of a C-style cast.
Modified:
llvm/trunk/lib/VMCore/Verifier.cpp
Modified: llvm/trunk/lib/VMCore/Verifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Verifier.cpp?rev=52684&r1=52683&r2=52684&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Verifier.cpp (original)
+++ llvm/trunk/lib/VMCore/Verifier.cpp Tue Jun 24 12:47:37 2008
@@ -1504,7 +1504,7 @@
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();
More information about the llvm-commits
mailing list