Skip to content

Commit 4cafc8e

Browse files
committed
[WebAssembly] Fix typo in Tag value assertion. NFC
Because C_LONGJMP is defined as 1 this assertion was never false.
1 parent ddd49c6 commit 4cafc8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ void WebAssemblyDAGToDAGISel::PreprocessISelDAG() {
110110
}
111111

112112
static SDValue getTagSymNode(int Tag, SelectionDAG *DAG) {
113-
assert(Tag == WebAssembly::CPP_EXCEPTION || WebAssembly::C_LONGJMP);
113+
assert(Tag == WebAssembly::CPP_EXCEPTION || Tag == WebAssembly::C_LONGJMP);
114114
auto &MF = DAG->getMachineFunction();
115115
const auto &TLI = DAG->getTargetLoweringInfo();
116116
MVT PtrVT = TLI.getPointerTy(DAG->getDataLayout());

0 commit comments

Comments
 (0)