[clang] bb50061 - [CodeGen] Change placeholder from `undef` to `poison` (#134731)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 8 01:50:52 PDT 2025
Author: Pedro Lobo
Date: 2025-04-08T09:50:48+01:00
New Revision: bb5006169f9f72a87b4358356976e0fa33353728
URL: https://github.com/llvm/llvm-project/commit/bb5006169f9f72a87b4358356976e0fa33353728
DIFF: https://github.com/llvm/llvm-project/commit/bb5006169f9f72a87b4358356976e0fa33353728.diff
LOG: [CodeGen] Change placeholder from `undef` to `poison` (#134731)
Fill default values of a map with `poison` instead of `undef`. There
should be no functional difference as the default values are overridden
later.
Added:
Modified:
clang/lib/CodeGen/MicrosoftCXXABI.cpp
Removed:
################################################################################
diff --git a/clang/lib/CodeGen/MicrosoftCXXABI.cpp b/clang/lib/CodeGen/MicrosoftCXXABI.cpp
index ba5f74f153d59..7bef436302526 100644
--- a/clang/lib/CodeGen/MicrosoftCXXABI.cpp
+++ b/clang/lib/CodeGen/MicrosoftCXXABI.cpp
@@ -370,7 +370,7 @@ class MicrosoftCXXABI : public CGCXXABI {
MicrosoftVTableContext &VTContext = CGM.getMicrosoftVTableContext();
unsigned NumEntries = 1 + SrcRD->getNumVBases();
SmallVector<llvm::Constant *, 4> Map(NumEntries,
- llvm::UndefValue::get(CGM.IntTy));
+ llvm::PoisonValue::get(CGM.IntTy));
Map[0] = llvm::ConstantInt::get(CGM.IntTy, 0);
bool AnyDifferent = false;
for (const auto &I : SrcRD->vbases()) {
More information about the cfe-commits
mailing list