mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-02 08:26:29 +00:00
Remove an unnecessary const_cast.
I think that this is dating back to when emit used to take a const reference. llvm-svn: 311948
This commit is contained in:
parent
fb87fd513f
commit
e89676a607
@ -165,7 +165,8 @@ void OptimizationRemarkEmitter::emit(
|
||||
|
||||
yaml::Output *Out = F->getContext().getDiagnosticsOutputFile();
|
||||
if (Out) {
|
||||
auto *P = const_cast<DiagnosticInfoOptimizationBase *>(&OptDiagBase);
|
||||
// For remarks the << operator takes a reference to a pointer.
|
||||
auto *P = &OptDiagBase;
|
||||
*Out << P;
|
||||
}
|
||||
// FIXME: now that IsVerbose is part of DI, filtering for this will be moved
|
||||
|
Loading…
Reference in New Issue
Block a user