diff options
author | Pedro Lobo <pedro.lobo@tecnico.ulisboa.pt> | 2025-03-17 22:16:18 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-17 22:16:18 +0000 |
commit | ccf21094713e7a080a38f30144ea77b7cacf3064 (patch) | |
tree | 594bef226ea0974bc755e1e57f890d5f3f77d573 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 5b9006550d7766f07dd1129e0f369ed28f0a8edb (diff) | |
download | llvm-ccf21094713e7a080a38f30144ea77b7cacf3064.zip llvm-ccf21094713e7a080a38f30144ea77b7cacf3064.tar.gz llvm-ccf21094713e7a080a38f30144ea77b7cacf3064.tar.bz2 |
[Metadata] Change placeholder from `undef` to `poison` (#131469)
Replace `undef` constant metadata uses with `poison`.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 447192b..a7fdfa6 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -640,7 +640,7 @@ void CodeGenFunction::EmitKernelMetadata(const FunctionDecl *FD, HintQTy->isSignedIntegerType() || (HintEltQTy && HintEltQTy->getElementType()->isSignedIntegerType()); llvm::Metadata *AttrMDArgs[] = { - llvm::ConstantAsMetadata::get(llvm::UndefValue::get( + llvm::ConstantAsMetadata::get(llvm::PoisonValue::get( CGM.getTypes().ConvertType(A->getTypeHint()))), llvm::ConstantAsMetadata::get(llvm::ConstantInt::get( llvm::IntegerType::get(Context, 32), |