[PATCH] D55401: [WebAssembly] Fix assembler parsing of br_table.
    Wouter van Oortmerssen via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Dec  6 16:53:14 PST 2018
    
    
  
aardappel marked an inline comment as done.
aardappel added inline comments.
================
Comment at: lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCCodeEmitter.cpp:97
       if (i < Desc.getNumOperands()) {
-        assert(Desc.TSFlags == 0 &&
+        assert((Desc.TSFlags == 0 || IsBrTable) &&
                "WebAssembly non-variable_ops don't use TSFlags");
----------------
This is pretty yucky. I must I don't quite follow what these flags are used for, so not sure if we should remove these flags from br_table in the tablegen defs instead?
Repository:
  rL LLVM
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55401/new/
https://reviews.llvm.org/D55401
    
    
More information about the llvm-commits
mailing list