We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0fe52d commit ef5ba2eCopy full SHA for ef5ba2e
llvm/lib/IR/ConstantsContext.h
@@ -292,6 +292,7 @@ template <class ConstantClass> struct ConstantAggrKeyType {
292
ConstantAggrKeyType(const ConstantClass *C,
293
SmallVectorImpl<Constant *> &Storage) {
294
assert(Storage.empty() && "Expected empty storage");
295
+ Storage.reserve(C->getNumOperands());
296
for (unsigned I = 0, E = C->getNumOperands(); I != E; ++I)
297
Storage.push_back(C->getOperand(I));
298
Operands = Storage;
0 commit comments