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:
parent
165fcf69d0
commit
8696d90356
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user