Index: include/llvm/BinaryFormat/Wasm.h =================================================================== --- include/llvm/BinaryFormat/Wasm.h +++ include/llvm/BinaryFormat/Wasm.h @@ -199,7 +199,7 @@ WASM_SEC_ELEM = 9, // Elements section WASM_SEC_CODE = 10, // Function bodies (code) WASM_SEC_DATA = 11, // Data segments - WASM_SEC_EVENT = 12 // Event declarations + WASM_SEC_EVENT = 13 // Event declarations }; // Type immediate encodings used in various contexts. Index: test/MC/WebAssembly/event-section.ll =================================================================== --- test/MC/WebAssembly/event-section.ll +++ test/MC/WebAssembly/event-section.ll @@ -53,6 +53,6 @@ ; CHECK-NEXT: Flags: [ BINDING_WEAK ] ; CHECK-NEXT: Event: 0 -; SEC: Type: EVENT (0xC) +; SEC: Type: EVENT (0xD) ; SEC-NEXT: Size: 3 ; SEC-NEXT: Offset: 97