[clang] [clang] Change placeholder from `undef` to `poison` (PR #131533)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Mar 16 11:30:57 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-codegen
Author: Pedro Lobo (pedroclobo)
<details>
<summary>Changes</summary>
Return a `poison` value, instead of `undef`, if there is no available SEH info.
---
Full diff: https://github.com/llvm/llvm-project/pull/131533.diff
1 Files Affected:
- (modified) clang/lib/CodeGen/CGException.cpp (+1-1)
``````````diff
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;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/131533
More information about the cfe-commits
mailing list