Fix -Wcast-qual warnings.
llvm-svn: 101786
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user