diff options
author | Manuel Brito <manuel.brito@tecnico.ulisboa.pt> | 2022-12-11 17:17:34 +0000 |
---|---|---|
committer | Nuno Lopes <nuno.lopes@tecnico.ulisboa.pt> | 2022-12-11 17:18:00 +0000 |
commit | 45a892d0124ad430faebd96bc46f8abb0bf4f0dd (patch) | |
tree | 2455441171585bd9ad4d4a4233948485f8d5bfe8 /llvm/lib/Analysis/ValueTracking.cpp | |
parent | 29e8de5de1611dad9c71f351616992ceaeb5c5cc (diff) | |
download | llvm-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.cpp | 2 |
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(); |