diff options
Diffstat (limited to 'contrib/llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp')
| -rw-r--r-- | contrib/llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp | 7 | 
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp b/contrib/llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp index 8846952e5af4..cd49bd1682ad 100644 --- a/contrib/llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp +++ b/contrib/llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp @@ -8,7 +8,7 @@  //===----------------------------------------------------------------------===//  ///  /// \file -/// \brief This file contains the WebAssembly implementation of the +/// This file contains the WebAssembly implementation of the  /// TargetInstrInfo class.  ///  //===----------------------------------------------------------------------===// @@ -30,7 +30,8 @@ using namespace llvm;  WebAssemblyInstrInfo::WebAssemblyInstrInfo(const WebAssemblySubtarget &STI)      : WebAssemblyGenInstrInfo(WebAssembly::ADJCALLSTACKDOWN, -                              WebAssembly::ADJCALLSTACKUP), +                              WebAssembly::ADJCALLSTACKUP, +                              WebAssembly::CATCHRET),        RI(STI.getTargetTriple()) {}  bool WebAssemblyInstrInfo::isReallyTriviallyReMaterializable( @@ -151,7 +152,7 @@ unsigned WebAssemblyInstrInfo::removeBranch(MachineBasicBlock &MBB,    while (I != MBB.instr_begin()) {      --I; -    if (I->isDebugValue()) +    if (I->isDebugInstr())        continue;      if (!I->isTerminator())        break;  | 
