Skip to content

Commit bb50061

Browse files
authored
[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.
1 parent f0bdeb4 commit bb50061

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/MicrosoftCXXABI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ class MicrosoftCXXABI : public CGCXXABI {
370370
MicrosoftVTableContext &VTContext = CGM.getMicrosoftVTableContext();
371371
unsigned NumEntries = 1 + SrcRD->getNumVBases();
372372
SmallVector<llvm::Constant *, 4> Map(NumEntries,
373-
llvm::UndefValue::get(CGM.IntTy));
373+
llvm::PoisonValue::get(CGM.IntTy));
374374
Map[0] = llvm::ConstantInt::get(CGM.IntTy, 0);
375375
bool AnyDifferent = false;
376376
for (const auto &I : SrcRD->vbases()) {

0 commit comments

Comments
 (0)