aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ValueTracking.cpp
diff options
context:
space:
mode:
authorManuel Brito <manuel.brito@tecnico.ulisboa.pt>2022-12-11 17:17:34 +0000
committerNuno Lopes <nuno.lopes@tecnico.ulisboa.pt>2022-12-11 17:18:00 +0000
commit45a892d0124ad430faebd96bc46f8abb0bf4f0dd (patch)
tree2455441171585bd9ad4d4a4233948485f8d5bfe8 /llvm/lib/Analysis/ValueTracking.cpp
parent29e8de5de1611dad9c71f351616992ceaeb5c5cc (diff)
downloadllvm-45a892d0124ad430faebd96bc46f8abb0bf4f0dd.zip
llvm-45a892d0124ad430faebd96bc46f8abb0bf4f0dd.tar.gz
llvm-45a892d0124ad430faebd96bc46f8abb0bf4f0dd.tar.bz2
Use poison instead of undef where its used as a placeholder [NFC]
Differential Revision: https://reviews.llvm.org/D139789
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r--llvm/lib/Analysis/ValueTracking.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp
index 231e8fe..a514bde 100644
--- a/llvm/lib/Analysis/ValueTracking.cpp
+++ b/llvm/lib/Analysis/ValueTracking.cpp
@@ -4107,7 +4107,7 @@ static Value *BuildSubAggregate(Value *From, ArrayRef<unsigned> idx_range,
assert(InsertBefore && "Must have someplace to insert!");
Type *IndexedType = ExtractValueInst::getIndexedType(From->getType(),
idx_range);
- Value *To = UndefValue::get(IndexedType);
+ Value *To = PoisonValue::get(IndexedType);
SmallVector<unsigned, 10> Idxs(idx_range.begin(), idx_range.end());
unsigned IdxSkip = Idxs.size();