system/lib/gl.c has an EM_ASM at the end: https://github.com/kripken/emscripten/blob/6dc4ac5f9e4d8484e273e4dcc554f809738cedd6/system/lib/gl.c#L1731
When building with upstream clang with the wasm backend, it doesn't work properly (when tested with BananaBread) and needs to be commented out.
Previously @jgravelle-google said it wasn't getting the correct IR in clang.