projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f37660
)
Use const_cast instead of a C-style cast.
author
Dan Gohman
<gohman@apple.com>
Tue, 24 Jun 2008 17:47:37 +0000
(17:47 +0000)
committer
Dan 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
patch
|
blob
|
history
diff --git
a/lib/VMCore/Verifier.cpp
b/lib/VMCore/Verifier.cpp
index 0ce7d4c27ce921395c97491ae6f23f28ad33a560..4ff2447621e158979e934c7801e55e0b7395065e 100644
(file)
--- 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();