diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2020-10-26 21:18:16 -0400 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2020-10-26 21:18:34 -0400 |
commit | 52821f6a71a568f966427b627839d40641653757 (patch) | |
tree | c78b2421666b14fbb2387de94496ea26b1238cc1 /llvm/lib/IR/Constants.cpp | |
parent | 3fffffa882c0c3702e1ce4c6eaf8a380ac4ab065 (diff) | |
download | llvm-52821f6a71a568f966427b627839d40641653757.zip llvm-52821f6a71a568f966427b627839d40641653757.tar.gz llvm-52821f6a71a568f966427b627839d40641653757.tar.bz2 |
IR: Add a comment at missing std::make_unique calls from b2b7cf39d596b1528cd64015575b3f5d1461c011, NFC
Diffstat (limited to 'llvm/lib/IR/Constants.cpp')
-rw-r--r-- | llvm/lib/IR/Constants.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/IR/Constants.cpp b/llvm/lib/IR/Constants.cpp index cfefd33..0436a6e 100644 --- a/llvm/lib/IR/Constants.cpp +++ b/llvm/lib/IR/Constants.cpp @@ -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(); } |