[clang] 6eb32a2 - [clang] Change placeholder from `undef` to `poison` (#131533)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 17 03:49:21 PDT 2025
Author: Pedro Lobo
Date: 2025-03-17T10:49:18Z
New Revision: 6eb32a2fa0d16bea03f22dd2078f53da6d9352cd
URL: https://github.com/llvm/llvm-project/commit/6eb32a2fa0d16bea03f22dd2078f53da6d9352cd
DIFF: https://github.com/llvm/llvm-project/commit/6eb32a2fa0d16bea03f22dd2078f53da6d9352cd.diff
LOG: [clang] Change placeholder from `undef` to `poison` (#131533)
Return a `poison` value, instead of `undef`, if there is no available
SEH info.
Added:
Modified:
clang/lib/CodeGen/CGException.cpp
Removed:
################################################################################
diff --git a/clang/lib/CodeGen/CGException.cpp b/clang/lib/CodeGen/CGException.cpp
index 5a395c924333e..b4b8c2952b02b 100644
--- a/clang/lib/CodeGen/CGException.cpp
+++ b/clang/lib/CodeGen/CGException.cpp
@@ -2145,7 +2145,7 @@ llvm::Value *CodeGenFunction::EmitSEHExceptionInfo() {
// Sema should diagnose calling this builtin outside of a filter context, but
// don't crash if we screw up.
if (!SEHInfo)
- return llvm::UndefValue::get(Int8PtrTy);
+ return llvm::PoisonValue::get(Int8PtrTy);
assert(SEHInfo->getType() == Int8PtrTy);
return SEHInfo;
}
More information about the cfe-commits
mailing list