reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/CodeGen/CGExprConstant.cpp
  922   if (Elements.size() < NonzeroLength && Filler->isNullValue())
  923     NonzeroLength = Elements.size();
  924   if (NonzeroLength == Elements.size()) {
  925     while (NonzeroLength > 0 && Elements[NonzeroLength - 1]->isNullValue())
  935     assert(Elements.size() >= NonzeroLength &&
  943           makeArrayRef(Elements).take_front(NonzeroLength));
  944       Elements.resize(2);
  945       Elements[0] = Initial;
  947       Elements.resize(NonzeroLength + 1);
  953     Elements.back() = llvm::ConstantAggregateZero::get(FillerType);
  955   } else if (Elements.size() != ArrayBound) {
  957     Elements.resize(ArrayBound, Filler);
  965         llvm::ArrayType::get(CommonElementType, ArrayBound), Elements);
  969   Types.reserve(Elements.size());
  970   for (llvm::Constant *Elt : Elements)
  974   return llvm::ConstantStruct::get(SType, Elements);