[clang] [WebAssembly][Clang] Add __builtin_wasm_ref_is_null_extern (PR #139580)
Hood Chatham via cfe-commits
cfe-commits at lists.llvm.org
Mon May 12 14:53:43 PDT 2025
================
@@ -52,14 +52,33 @@ static bool CheckWasmBuiltinArgIsInteger(Sema &S, CallExpr *E,
}
bool SemaWasm::BuiltinWasmRefNullExtern(CallExpr *TheCall) {
- if (TheCall->getNumArgs() != 0)
+ if (TheCall->getNumArgs() != 0) {
----------------
hoodmane wrote:
Oh right, `getArg(1)` will fail if there is only one argument in the call expression. Okay I think I know how to fix this.
https://github.com/llvm/llvm-project/pull/139580
More information about the cfe-commits
mailing list