Skip to content

Commit 35c0757

Browse files
committed
Use Poison instead of Undef
1 parent bec1ced commit 35c0757

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/TargetBuiltins/WebAssembly.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ Value *CodeGenFunction::EmitWebAssemblyBuiltinExpr(unsigned BuiltinID,
258258
// TokenTy isn't a first class value either but apparently the verifier
259259
// doesn't mind it.
260260
Args.push_back(
261-
UndefValue::get(llvm::Type::getTokenTy(getLLVMContext())));
261+
PoisonValue::get(llvm::Type::getTokenTy(getLLVMContext())));
262262
} else if (T->isFloatingPointTy()) {
263263
Args.push_back(ConstantFP::get(T, 0));
264264
} else if (T->isIntegerTy()) {

0 commit comments

Comments
 (0)