Skip to content

Commit fe3b655

Browse files
committed
Use Poison instead of Undef
1 parent 7cdc5d3 commit fe3b655

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
@@ -253,7 +253,7 @@ Value *CodeGenFunction::EmitWebAssemblyBuiltinExpr(unsigned BuiltinID,
253253
// TokenTy isn't a first class value either but apparently the verifier
254254
// doesn't mind it.
255255
Args.push_back(
256-
UndefValue::get(llvm::Type::getTokenTy(getLLVMContext())));
256+
PoisonValue::get(llvm::Type::getTokenTy(getLLVMContext())));
257257
} else if (T->isFloatingPointTy()) {
258258
Args.push_back(ConstantFP::get(T, 0));
259259
} else if (T->isIntegerTy()) {

0 commit comments

Comments
 (0)