-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[clang] Change placeholder from undef
to poison
#131533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Return a `poison` value, instead of `undef`, if there is no available SEH info.
@llvm/pr-subscribers-clang Author: Pedro Lobo (pedroclobo) ChangesReturn a Full diff: https://github.com/llvm/llvm-project/pull/131533.diff 1 Files Affected:
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;
}
|
@llvm/pr-subscribers-clang-codegen Author: Pedro Lobo (pedroclobo) ChangesReturn a Full diff: https://github.com/llvm/llvm-project/pull/131533.diff 1 Files Affected:
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;
}
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/18/builds/13029 Here is the relevant piece of the build log for the reference
|
Seems like a spurious failure. |
Return a
poison
value, instead ofundef
, if there is no available SEH info.