We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c901f03 commit e343e0bCopy full SHA for e343e0b
llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
@@ -2591,7 +2591,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
2591
if (dstTy->isStructTy() && srcTy->isStructTy() &&
2592
cast<StructType>(dstTy)->getNumElements() ==
2593
cast<StructType>(srcTy)->getNumElements()) {
2594
- Value *DStruct = llvm::UndefValue::get(dstTy);
+ Value *DStruct = PoisonValue::get(dstTy);
2595
2596
for (unsigned i = 0, n = cast<StructType>(dstTy)->getNumElements(); i < n;
2597
i++) {
0 commit comments