Skip to content

Commit 966d466

Browse files
committed
Run clang-format
1 parent e3eb414 commit 966d466

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

llvm/lib/Target/WebAssembly/WebAssemblyDebugFixup.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,14 @@ bool WebAssemblyDebugFixup::runOnMachineFunction(MachineFunction &MF) {
123123
}
124124
} else {
125125

126-
// There is a WebAssembly Peephole optimisation can remove instructions before and after
127-
// a wasm unreachable. This is a valid transformation because unreachable is "stack polymorphic",
128-
// but stack polymorphism is not modeled in the llvm wasm backend.
129-
// In current codegen, unreachable can only appear at the end of a basic block, and the stack is empty
126+
// There is a WebAssembly Peephole optimisation can remove instructions
127+
// before and after a wasm unreachable. This is a valid transformation
128+
// because unreachable is "stack polymorphic", but stack polymorphism is
129+
// not modeled in the llvm wasm backend. In current codegen, unreachable
130+
// can only appear at the end of a basic block, and the stack is empty
130131
// at the end of every basic block.
131-
// So we can assume unreachable has stack-type [t*] -> [], and simply clear the stack.
132+
// So we can assume unreachable has stack-type [t*] -> [], and simply
133+
// clear the stack.
132134
if (MI.getOpcode() == WebAssembly::UNREACHABLE) {
133135
Stack.clear();
134136
break;

0 commit comments

Comments
 (0)