mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
Use unique_ptr to remove explicit delete.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224224 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -157,12 +157,12 @@ void DAGISelEmitter::run(raw_ostream &OS) {
|
||||
}
|
||||
}
|
||||
|
||||
Matcher *TheMatcher = new ScopeMatcher(PatternMatchers);
|
||||
std::unique_ptr<Matcher> TheMatcher =
|
||||
llvm::make_unique<ScopeMatcher>(PatternMatchers);
|
||||
|
||||
TheMatcher = OptimizeMatcher(TheMatcher, CGP);
|
||||
OptimizeMatcher(TheMatcher, CGP);
|
||||
//Matcher->dump();
|
||||
EmitMatcherTable(TheMatcher, CGP, OS);
|
||||
delete TheMatcher;
|
||||
EmitMatcherTable(TheMatcher.get(), CGP, OS);
|
||||
}
|
||||
|
||||
namespace llvm {
|
||||
|
||||
Reference in New Issue
Block a user