Fix -Wcast-qual warnings.

llvm-svn: 101786
This commit is contained in:
Dan Gohman
2010-04-19 16:39:44 +00:00
parent 3457061a66
commit 145f3f1e83
12 changed files with 25 additions and 14 deletions

View File

@@ -718,7 +718,7 @@ void CodeGenModule::EmitGlobal(GlobalDecl GD) {
void CodeGenModule::EmitGlobalDefinition(GlobalDecl GD) {
const ValueDecl *D = cast<ValueDecl>(GD.getDecl());
PrettyStackTraceDecl CrashInfo((ValueDecl *)D, D->getLocation(),
PrettyStackTraceDecl CrashInfo(const_cast<ValueDecl *>(D), D->getLocation(),
Context.getSourceManager(),
"Generating code for declaration");