1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

IR: Add a comment at missing std::make_unique calls from b2b7cf39d596b1528cd64015575b3f5d1461c011, NFC

This commit is contained in:
Duncan P. N. Exon Smith 2020-10-26 21:18:16 -04:00
parent 165fcf69d0
commit 8696d90356

View File

@ -2792,11 +2792,13 @@ Constant *ConstantDataSequential::getImpl(StringRef Elements, Type *Ty) {
// Okay, we didn't get a hit. Create a node of the right class, link it in,
// and return it.
if (isa<ArrayType>(Ty)) {
// Use reset because std::make_unique can't access the constructor.
Entry->reset(new ConstantDataArray(Ty, Slot.first().data()));
return Entry->get();
}
assert(isa<VectorType>(Ty));
// Use reset because std::make_unique can't access the constructor.
Entry->reset(new ConstantDataVector(Ty, Slot.first().data()));
return Entry->get();
}