forked from OSchip/llvm-project
[WebAssembly][NFC] Delete type checking logic for removed ref.null instruction
D114979 changed the textual formal of ref.null - dropping ref.null in favour of ref.null_extern and ref.null_func. Therefore, the type checker no longer needs logic to handle "ref.null". Differential Revision: https://reviews.llvm.org/D122123
This commit is contained in:
parent
9001168cf8
commit
ef9cf86eb0
|
@ -303,9 +303,6 @@ bool WebAssemblyAsmTypeCheck::typeCheck(SMLoc ErrorLoc, const MCInst &Inst) {
|
|||
// catch instruction pushes values whose types are specified in the tag's
|
||||
// "params" part
|
||||
Stack.insert(Stack.end(), Sig->Params.begin(), Sig->Params.end());
|
||||
} else if (Name == "ref.null") {
|
||||
auto VT = static_cast<wasm::ValType>(Inst.getOperand(0).getImm());
|
||||
Stack.push_back(VT);
|
||||
} else if (Name == "unreachable") {
|
||||
Unreachable = true;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue