summaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGExprScalar.cpp
diff options
context:
space:
mode:
authorNuno Lopes <nuno.lopes@tecnico.ulisboa.pt>2024-11-19 15:18:40 +0000
committerNuno Lopes <nuno.lopes@tecnico.ulisboa.pt>2024-11-19 15:18:40 +0000
commitb0afa6bab9581abc91f23c854b3bb45095cbb057 (patch)
treeb6c5025205572b7ad9836b7872536787a9ff644c /clang/lib/CodeGen/CGExprScalar.cpp
parent8e4423eb0888e5fe381a23ec1fa6969f2d096ed1 (diff)
[clang] Change some placeholders from undef to poison [NFC]
Diffstat (limited to 'clang/lib/CodeGen/CGExprScalar.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprScalar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp
index 287d911e10ba..4ae8a2b22b1b 100644
--- a/clang/lib/CodeGen/CGExprScalar.cpp
+++ b/clang/lib/CodeGen/CGExprScalar.cpp
@@ -1828,7 +1828,7 @@ Value *ScalarExprEmitter::VisitExpr(Expr *E) {
CGF.ErrorUnsupported(E, "scalar expression");
if (E->getType()->isVoidType())
return nullptr;
- return llvm::UndefValue::get(CGF.ConvertType(E->getType()));
+ return llvm::PoisonValue::get(CGF.ConvertType(E->getType()));
}
Value *