Skip to content

Commit 6eb32a2

Browse files
authored
[clang] Change placeholder from undef to poison (#131533)
Return a `poison` value, instead of `undef`, if there is no available SEH info.
1 parent 8c939f5 commit 6eb32a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/CGException.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2145,7 +2145,7 @@ llvm::Value *CodeGenFunction::EmitSEHExceptionInfo() {
21452145
// Sema should diagnose calling this builtin outside of a filter context, but
21462146
// don't crash if we screw up.
21472147
if (!SEHInfo)
2148-
return llvm::UndefValue::get(Int8PtrTy);
2148+
return llvm::PoisonValue::get(Int8PtrTy);
21492149
assert(SEHInfo->getType() == Int8PtrTy);
21502150
return SEHInfo;
21512151
}

0 commit comments

Comments
 (0)