diff options
author | Pedro Lobo <pedro.lobo@tecnico.ulisboa.pt> | 2025-03-17 10:49:18 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-17 10:49:18 +0000 |
commit | 6eb32a2fa0d16bea03f22dd2078f53da6d9352cd (patch) | |
tree | e90acabf49af41d9f34451460c04581ef6e531c9 /clang/lib/CodeGen/CGException.cpp | |
parent | 8c939f54b4907935a877e75d09ee88bf90401cb4 (diff) | |
download | llvm-6eb32a2fa0d16bea03f22dd2078f53da6d9352cd.zip llvm-6eb32a2fa0d16bea03f22dd2078f53da6d9352cd.tar.gz llvm-6eb32a2fa0d16bea03f22dd2078f53da6d9352cd.tar.bz2 |
[clang] Change placeholder from `undef` to `poison` (#131533)
Return a `poison` value, instead of `undef`, if there is no available
SEH info.
Diffstat (limited to 'clang/lib/CodeGen/CGException.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGException.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGException.cpp b/clang/lib/CodeGen/CGException.cpp index 5a395c9..b4b8c29 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; } |