Fix WebAssembly instruction printer after r339474
authorRichard Trieu <rtrieu@google.com>
Sat, 11 Aug 2018 04:18:05 +0000 (04:18 +0000)
committerRichard Trieu <rtrieu@google.com>
Sat, 11 Aug 2018 04:18:05 +0000 (04:18 +0000)
commit01f99f3cd67bb51a9fc18aa95dc73be20a22288d
treee755d2d50cada60aeade6f6df3db9e7dcbe7a798
parent9b6cd711d6dbaffe14664a03b928631f01ace24a
Fix WebAssembly instruction printer after r339474

Treat the stack variants of control instructions the same as regular
instructions.  Otherwise, the vector ControlFlowStack will be the wrong
size and have out-of-bounds access.  This was detected by MemorySanitizer.

llvm-svn: 339495
llvm/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp