aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorPedro Lobo <pedro.lobo@tecnico.ulisboa.pt>2024-12-10 15:57:55 +0000
committerGitHub <noreply@github.com>2024-12-10 15:57:55 +0000
commitf28e52274c83d5ccd03455ef98a3758916998be9 (patch)
tree37aeb328fa66f61a9602f99827f8cdabebfb1693 /clang/lib/CodeGen/CGCall.cpp
parent3654f1baa66f524c89e40ab24e18e594e56363e9 (diff)
downloadllvm-f28e52274c83d5ccd03455ef98a3758916998be9.zip
llvm-f28e52274c83d5ccd03455ef98a3758916998be9.tar.gz
llvm-f28e52274c83d5ccd03455ef98a3758916998be9.tar.bz2
[Clang] Change two placeholders from `undef` to `poison` [NFC] (#119141)
- Use `poison` instead of `undef` as a phi operand for an unreachable path (the predecessor will not go the BB that uses the value of the phi). - Call `@llvm.vector.insert` with a `poison` subvec when performing a `bitcast` from a fixed vector to a scalable vector.
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
-rw-r--r--clang/lib/CodeGen/CGCall.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index 3cefc9da..50b9dfb 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -4379,7 +4379,7 @@ static void emitWritebackArg(CodeGenFunction &CGF, CallArgList &args,
llvm::PHINode *phiToUse = CGF.Builder.CreatePHI(valueToUse->getType(), 2,
"icr.to-use");
phiToUse->addIncoming(valueToUse, copyBB);
- phiToUse->addIncoming(llvm::UndefValue::get(valueToUse->getType()),
+ phiToUse->addIncoming(llvm::PoisonValue::get(valueToUse->getType()),
originBB);
valueToUse = phiToUse;
}