diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2020-01-22 20:31:01 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2020-01-22 20:31:01 +0000 | 
| commit | 8bcb0991864975618c09697b1aca10683346d9f0 (patch) | |
| tree | 0afab28faa50e5f27698f8dd6c1921fff8d25e39 /contrib/llvm-project/llvm/lib/Target/WebAssembly/WebAssemblyCFGSort.cpp | |
| parent | b14637d118e110006a149a79b649c5695e7f419a (diff) | |
| parent | 1d5ae1026e831016fc29fd927877c86af904481f (diff) | |
Notes
Diffstat (limited to 'contrib/llvm-project/llvm/lib/Target/WebAssembly/WebAssemblyCFGSort.cpp')
| -rw-r--r-- | contrib/llvm-project/llvm/lib/Target/WebAssembly/WebAssemblyCFGSort.cpp | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/llvm-project/llvm/lib/Target/WebAssembly/WebAssemblyCFGSort.cpp b/contrib/llvm-project/llvm/lib/Target/WebAssembly/WebAssemblyCFGSort.cpp index 4c5d0192fc28..c069af9eed62 100644 --- a/contrib/llvm-project/llvm/lib/Target/WebAssembly/WebAssemblyCFGSort.cpp +++ b/contrib/llvm-project/llvm/lib/Target/WebAssembly/WebAssemblyCFGSort.cpp @@ -97,14 +97,14 @@ public:        // If the smallest region containing MBB is a loop        if (LoopMap.count(ML))          return LoopMap[ML].get(); -      LoopMap[ML] = llvm::make_unique<ConcreteRegion<MachineLoop>>(ML); +      LoopMap[ML] = std::make_unique<ConcreteRegion<MachineLoop>>(ML);        return LoopMap[ML].get();      } else {        // If the smallest region containing MBB is an exception        if (ExceptionMap.count(WE))          return ExceptionMap[WE].get();        ExceptionMap[WE] = -          llvm::make_unique<ConcreteRegion<WebAssemblyException>>(WE); +          std::make_unique<ConcreteRegion<WebAssemblyException>>(WE);        return ExceptionMap[WE].get();      }    } @@ -317,6 +317,7 @@ static void sortBlocks(MachineFunction &MF, const MachineLoopInfo &MLI,        // If Next was originally ordered before MBB, and it isn't because it was        // loop-rotated above the header, it's not preferred.        if (Next->getNumber() < MBB->getNumber() && +          (WasmDisableEHPadSort || !Next->isEHPad()) &&            (!R || !R->contains(Next) ||             R->getHeader()->getNumber() < Next->getNumber())) {          Ready.push(Next);  | 
