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

References

include/llvm/ADT/ArrayRef.h
  152       assert(!empty());
  158       assert(!empty());
  338       assert(!this->empty());
  344       assert(!this->empty());
include/llvm/ADT/TinyPtrVector.h
  125       : Val(Elts.empty()
include/llvm/Analysis/TargetTransformInfoImpl.h
  750     if (Operands.empty())
include/llvm/CodeGen/BasicTTIImpl.h
  608     if (!Args.empty())
include/llvm/CodeGen/GlobalISel/CallLowering.h
   61       if (!Regs.empty() && Flags.empty())
   61       if (!Regs.empty() && Flags.empty())
   64       assert((Ty->isVoidTy() == (Regs.empty() || Regs[0] == 0)) &&
include/llvm/CodeGen/GlobalISel/IRTranslator.h
  564     if (Regs.empty())
include/llvm/CodeGen/MachineInstr.h
  579   bool memoperands_empty() const { return memoperands().empty(); }
include/llvm/CodeGen/SelectionDAGNodes.h
 2509   bool memoperands_empty() const { return memoperands().empty(); }
include/llvm/DebugInfo/CodeView/CVRecord.h
   73   while (!StreamBuffer.empty()) {
include/llvm/DebugInfo/CodeView/GlobalTypeTableBuilder.h
   81       if (StableRecord.empty()) {
include/llvm/DebugInfo/CodeView/SymbolRecord.h
  204     if (Annotations.empty())
  213     if (Annotations.empty())
  222     if (Annotations.empty())
  228     if (Annotations.empty())
include/llvm/DebugInfo/CodeView/TypeRecord.h
  568     if (!SlotsRef.empty())
include/llvm/FuzzMutate/OpDescriptor.h
  196     assert(!Cur.empty() && "No first source yet");
  200     assert(!Cur.empty() && "No first source yet");
  209     assert(!Cur.empty() && "No first source yet");
  213     assert(!Cur.empty() && "No first source yet");
include/llvm/IR/IRBuilder.h
 1302     assert(!Ops.empty());
 1328     assert(!Ops.empty());
include/llvm/IR/ModuleSummaryIndex.h
  452                                 !AliaseeValueInfo.getSummaryList().empty()) &&
 1437          !S->notEligibleToImport() && S->refs().empty();
include/llvm/Object/ELF.h
  605   if (Data.empty())
include/llvm/ObjectYAML/YAML.h
   99   if (LHS.Data.empty() && RHS.Data.empty())
   99   if (LHS.Data.empty() && RHS.Data.empty())
include/llvm/ProfileData/InstrProf.h
  865     NumValueKinds += !(getValueSitesForKind(Kind).empty());
include/llvm/Support/Automaton.h
  191     if (!TranscriptionTable.empty())
include/llvm/Support/BinaryByteStream.h
  113     if (Buffer.empty())
  173     if (Buffer.empty())
include/llvm/Support/BinaryStreamWriter.h
  152     if (Array.empty())
lib/Analysis/MemorySSAUpdater.cpp
 1249     assert(!Preds.empty() && "Must be moving at least one predecessor to the "
lib/Analysis/ScalarEvolution.cpp
 1783           !AC.assumptions().empty()) {
 2135           !AC.assumptions().empty()) {
lib/Analysis/ValueTracking.cpp
 3373   if (idx_range.empty())
lib/AsmParser/LLParser.cpp
 3604       if (!Indices.empty() && !Ty->isSized(&Visited))
lib/Bitcode/Reader/BitcodeReader.cpp
  462   if (Record.empty())
 3060   if (Record.empty())
lib/Bitcode/Reader/MetadataLoader.cpp
  575       while (!SubExpr.empty()) {
lib/Bitcode/Writer/BitcodeWriter.cpp
 1969   if (Strings.empty())
 2007   if (MDs.empty())
 3512   if (!FS->type_tests().empty())
 3519     if (VFs.empty())
 3555   if (!FS->type_tests().empty())
 3684   if (!VI || VI.getSummaryList().empty()) {
 3697   if (!VTableFuncs.empty())
 3707   if (VTableFuncs.empty())
 3841     if (!VI || VI.getSummaryList().empty()) {
lib/CodeGen/AggressiveAntiDepBreaker.cpp
  633   if (Order.empty()) {
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
 1139       if (!DebugLocs.getLists().empty() && !useSplitDwarf()) {
 1844       LScopes.getAbstractScopesList().empty() && !IsDarwin) {
 1880     if (!LScopes.getAbstractScopesList().empty() &&
 2435   if (DebugLocs.getLists().empty())
lib/CodeGen/AtomicExpandPass.cpp
 1576   if (!Libcalls.empty())
lib/CodeGen/DFAPacketizer.cpp
  135   assert(!NfaPaths.empty() && "Invalid bundle!");
lib/CodeGen/ExpandMemCmp.cpp
  130   while (Size && !LoadSizes.empty()) {
  212   while (!LoadSizes.empty() && LoadSizes.front() > Size) {
  215   assert(!LoadSizes.empty() && "cannot load Size bytes");
lib/CodeGen/GlobalISel/LegalizerHelper.cpp
  201     assert(LeftoverRegs.empty());
lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
  539   assert(!Ops.empty() && "invalid trivial sequence");
 1048     assert(!DstOps.empty() && "Invalid trivial sequence");
 1062     assert(!SrcOps.empty() && "invalid trivial sequence");
 1110     assert((!SrcOps.empty() || SrcOps.size() < 2) &&
 1127     assert((!SrcOps.empty() || SrcOps.size() < 2) &&
 1145     assert((!SrcOps.empty() || SrcOps.size() < 2) &&
lib/CodeGen/InlineSpiller.cpp
  791   if (Ops.empty())
lib/CodeGen/InterleavedAccessPass.cpp
  358   if (Extracts.empty())
lib/CodeGen/LiveRangeCalc.cpp
  425   if (!Undefs.empty() && FoundUndef)
  469     if (!Undefs.empty() &&
lib/CodeGen/MIRParser/MIParser.cpp
 1119     return error(Operands.empty() ? Token.location() : Operands.back().End,
lib/CodeGen/MachineInstr.cpp
  365   if (MMOs.empty()) {
  419   if (MIs.empty()) {
lib/CodeGen/MachinePostDominators.cpp
   52   assert(!Blocks.empty());
lib/CodeGen/MachineScheduler.cpp
 1019   if (!BotRPTracker.getLiveThru().empty()) {
lib/CodeGen/MachineTraceMetrics.cpp
  980   assert(!Trace.empty() && "Trace should contain at least one block");
lib/CodeGen/ParallelCG.cpp
   42   assert(BCOSs.empty() || BCOSs.size() == OSs.size());
   45     if (!BCOSs.empty())
   70           if (!BCOSs.empty()) {
lib/CodeGen/RegAllocFast.cpp
  763     assert(!AllocationOrder.empty() && "Allocation order must not be empty");
lib/CodeGen/RegUsageInfoPropagate.cpp
  126         if (RegMask.empty())
lib/CodeGen/RegisterPressure.cpp
  972     if (!LiveThruPressureVec.empty())
lib/CodeGen/SafeStack.cpp
  432   if (StackRestorePoints.empty())
  490   if (StaticAllocas.empty() && ByValArguments.empty())
  490   if (StaticAllocas.empty() && ByValArguments.empty())
  683   if (!DynamicAllocas.empty()) {
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
 4188   assert(!Ops.empty() && "Can't concatenate an empty list of vectors!");
 7566   if (NewMemRefs.empty()) {
 8611     assert(DbgInfo->getSDDbgValues(SD).empty() || SD->getHasDebugValue());
lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
  742     if (G && !G->GetDbgValues(this).empty()) {
  795   if (VerboseDAGDumping && G && !G->GetDbgValues(&Node).empty())
lib/DebugInfo/CodeView/DebugChecksumsSubsection.cpp
   71   if (!Bytes.empty()) {
lib/DebugInfo/CodeView/TypeIndexDiscovery.cpp
   72   while (!Content.empty()) {
  212   while (!Content.empty()) {
  253     if (!Content.empty()) {
  466   if (Refs.empty())
lib/DebugInfo/CodeView/TypeStreamMerger.cpp
  118     assert(TypeLookup.empty());
  388       if (!Result.empty())
lib/DebugInfo/DWARF/DWARFContext.cpp
 1040         if (!Location->empty() && (*Location)[0] == DW_OP_fbreg)
lib/DebugInfo/PDB/Native/DbiModuleDescriptorBuilder.cpp
   74   if (BulkSymbols.empty())
lib/DebugInfo/PDB/Native/DbiStreamBuilder.cpp
  152   if (SectionMap.empty())
  415   if (!SectionMap.empty()) {
lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp
  323   assert(!InfoStreamBlocks.empty());
lib/DebugInfo/PDB/Native/TpiStreamBuilder.cpp
  156     assert(!Rec.empty()); // An empty record will not write anything, but it
lib/DebugInfo/Symbolize/Symbolize.cpp
  282   if (dbg_uuid.empty() || bin_uuid.empty())
  282   if (dbg_uuid.empty() || bin_uuid.empty())
lib/ExecutionEngine/MCJIT/MCJIT.cpp
  566   if (ArgValues.empty()) {
lib/ExecutionEngine/Orc/OrcMCJITReplacement.cpp
   84   if (ArgValues.empty()) {
lib/IR/AsmWriter.cpp
 2900   if (!VTableFuncs.empty()) {
 2964   if (!FS->calls().empty()) {
 3100   if (!RefList.empty()) {
 3123   if (!VI.getSummaryList().empty()) {
lib/IR/Attributes.cpp
  738   if (Attrs.empty())
  906   assert(!Sets.empty() && "pointless AttributeListImpl");
  947   assert(!AttrSets.empty() && "pointless AttributeListImpl");
  975   if (Attrs.empty())
 1011   if (Attrs.empty())
 1108   if (Attrs.empty())
lib/IR/ConstantFold.cpp
  901   if (Idxs.empty())
  914   if (Idxs.empty())
 2124   if (Idxs.empty()) return true;
 2168   if (Idxs.empty()) return C;
lib/IR/Constants.cpp
  942   assert(!V.empty() && "Cannot get empty int sequence.");
  955   assert(!V.empty() && "Cannot get empty FP sequence.");
 1022   if (V.empty())
 1063   assert(!V.empty() &&
 1083   if (!V.empty()) {
 1118   assert(!V.empty() && "Vectors can't be empty");
lib/IR/DebugInfoMetadata.cpp
 1083   assert(Expr && !Ops.empty() && "Can't append ops to this expression");
 1105   assert(Expr && !Ops.empty() && "Can't append ops to this expression");
 1123   bool NeedsStackValue = NeedsDeref || ExprOpsBeforeFragment.empty();
lib/IR/Function.cpp
 1058   while (!TableRef.empty())
 1123   if (Infos.empty()) return true;
 1373   if (Infos.empty())
lib/IR/Instruction.cpp
  722     if (WL.empty() || WLS.count(MD.first))
  725   if (WL.empty() || WLS.count(LLVMContext::MD_dbg))
lib/IR/Instructions.cpp
 1629   if (IdxList.empty())
 1917   assert(!Mask.empty() && "Shuffle mask must contain elements");
 2115   assert(!Idxs.empty() && "InsertValueInst must have at least one index");
 2144   assert(!Idxs.empty() && "ExtractValueInst must have at least one index");
lib/IR/LLVMContextImpl.h
  224     assert((RawOps.empty() || Ops.empty()) && "Two sets of operands?");
  224     assert((RawOps.empty() || Ops.empty()) && "Two sets of operands?");
  225     return RawOps.empty() ? compareOps(Ops, RHS, Offset)
lib/IR/Metadata.cpp
  883   if (!Ops.empty())
lib/IR/ModuleSummaryIndex.cpp
   99   if (SummaryList.empty())
lib/IR/Type.cpp
  382   if (Elements.empty()) {
  469   assert(!Elements.empty() &&
  475   assert(!Elements.empty() &&
lib/IR/Verifier.cpp
 4149           !DL.getNonIntegralAddressSpaces().empty()) {
 4264   Assert(TableRef.empty(), "Intrinsic has too few arguments!", IF);
lib/LTO/LTO.cpp
  884       if (!FS->type_test_assume_vcalls().empty() ||
  885           !FS->type_checked_load_vcalls().empty() ||
  886           !FS->type_test_assume_const_vcalls().empty() ||
  887           !FS->type_checked_load_const_vcalls().empty() ||
  888           !FS->type_tests().empty())
lib/MC/ELFObjectWriter.cpp
  785   if (ShndxIndexes.empty()) {
lib/MC/MCAsmStreamer.cpp
  504   assert(!Options.empty() && "At least one option is required!");
lib/MC/MCCodeView.cpp
  479   if (Locs.empty())
  597   if (!LocAfter.empty()) {
lib/MC/MCSchedule.cpp
  156   if (Entries.empty())
lib/MC/MCSubtargetInfo.cpp
  155   if (ProcDesc.empty() || ProcFeatures.empty())
  155   if (ProcDesc.empty() || ProcFeatures.empty())
lib/MC/WasmObjectWriter.cpp
  676   if (Signatures.empty())
  700   if (Imports.empty())
  744   if (Functions.empty())
  758   if (Events.empty())
  774   if (Exports.empty())
  791   if (TableElems.empty())
  825   if (Functions.empty())
  985   if (!InitFuncs.empty()) {
lib/MCA/HardwareUnits/RegisterFile.cpp
   83   if (Entries.empty())
lib/Object/ELF.cpp
  520   if (Dyn.empty()) {
  541   if (Dyn.empty())
lib/Object/IRSymtab.cpp
  310   assert(!IRMods.empty());
lib/Object/MachOObjectFile.cpp
 3087   if (Trie.empty())
lib/ObjectYAML/CodeViewYAMLDebugSections.cpp
  751   if (Subsections.empty())
lib/ObjectYAML/ELFEmitter.cpp
  537   if (RawSec && !Symbols.empty() && (RawSec->Content || RawSec->Size)) {
  591     assert(Symbols.empty());
lib/ProfileData/Coverage/CoverageMapping.cpp
  155   if (CounterValues.empty())
  213   if (Record.Filenames.empty())
  233   assert(!Record.MappingRegions.empty() && "Function has no regions");
  320     StringRef Arch = Arches.empty() ? StringRef() : Arches[File.index()];
  338   if (Readers.empty() && !ObjectFilenames.empty())
  533     if (Regions.empty())
  754   bool StartOfSkippedRegion = !LineSegments.empty() &&
lib/ProfileData/InstrProf.cpp
  380   assert(!NameStrs.empty() && "No name data to emit");
lib/ProfileData/InstrProfReader.cpp
  582   if (Data.empty())
  596   if (Data.empty())
lib/Remarks/Remark.cpp
  114   if (Args.empty())
lib/Support/ConvertUTFWrapper.cpp
   94   if (SrcBytes.empty())
lib/Support/GlobPattern.cpp
  156     if (Pats.empty())
  163       if (Pats.empty())
lib/Support/MemoryBuffer.cpp
  465   while (!ToRead.empty()) {
lib/Support/NativeFormatting.cpp
   33   assert(!Buffer.empty());
   42   while (!Buffer.empty()) {
lib/Support/Program.cpp
   35   assert(Redirects.empty() || Redirects.size() == 3);
   56   assert(Redirects.empty() || Redirects.size() == 3);
lib/Support/ScopedPrinter.cpp
   33     if (!Data.empty())
lib/Support/SourceMgr.cpp
  272   if (FixIts.empty())
lib/Support/Unix/Program.inc
   77   if (Paths.empty())
  211     if (!Redirects.empty()) {
  283       if (!Redirects.empty()) {
lib/Support/VirtualFileSystem.cpp
 1978   if (!Entries.empty()) {
lib/Support/raw_ostream.cpp
  403   if (FB.Bytes.empty())
  428   while (!Bytes.empty()) {
lib/TableGen/Error.cpp
   34   if (Loc.empty())
lib/TableGen/Record.cpp
  158   if (UnsortedClasses.empty()) {
  580   assert(Range.empty() || !isa<TypedInit>(Range[0]) ||
 2072   while (!SCs.empty()) {
 2129   if (!TArgs.empty()) {
 2144   if (!SC.empty()) {
lib/TableGen/TGParser.cpp
  173   if (BitList.empty())
  182   if (!BitList.empty()) {
  459   assert(Rec->getTemplateArgs().empty() && "How'd this get template args?");
 2315     if (TArgs.empty()) {
 2829     if (!CurRec->getValues().empty() ||
 2830         !CurRec->getSuperClasses().empty() ||
 2831         !CurRec->getTemplateArgs().empty())
lib/Target/AArch64/AArch64CallLowering.cpp
  261   assert(((Val && !VRegs.empty()) || (!Val && VRegs.empty())) &&
  261   assert(((Val && !VRegs.empty()) || (!Val && VRegs.empty())) &&
  265   if (!VRegs.empty()) {
lib/Target/AArch64/AArch64ISelLowering.cpp
 8788   assert(!Shuffles.empty() && "Empty shufflevector input");
lib/Target/AArch64/AArch64InstrInfo.cpp
  395     if (Cond.empty()) // Unconditional branch?
lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp
  559     if (Instrs.empty())
lib/Target/AMDGPU/AMDGPUCallLowering.cpp
  300   assert(!Val == VRegs.empty() && "Return value without a vreg");
lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
  413     if (!Args.empty() && match(Args[0], PatternMatch::m_FPOne())) {
lib/Target/AMDGPU/R600InstrInfo.cpp
  766     if (Cond.empty()) {
lib/Target/AMDGPU/SIISelLowering.cpp
 5155   assert(!Elts.empty());
lib/Target/AMDGPU/SIInstrInfo.cpp
 2051   if (!FBB && Cond.empty()) {
lib/Target/AMDGPU/SIMachineScheduler.cpp
 1435     if (Block->getSuccs().empty())
lib/Target/AMDGPU/SIRegisterInfo.cpp
  756   bool SpillToVGPR = !VGPRSpills.empty();
  780   unsigned NumSubRegs = SplitParts.empty() ? 1 : SplitParts.size();
  873   bool SpillToVGPR = !VGPRSpills.empty();
  892   unsigned NumSubRegs = SplitParts.empty() ? 1 : SplitParts.size();
lib/Target/ARC/ARCInstrInfo.cpp
  382   if (Cond.empty()) {
lib/Target/ARM/ARMBaseInstrInfo.cpp
  450     if (Cond.empty()) { // Unconditional branch?
lib/Target/ARM/ARMCallLowering.cpp
  268   assert(!Val == VRegs.empty() && "Return value without a vreg");
lib/Target/ARM/ARMISelLowering.cpp
16743   assert(!Shuffles.empty() && "Empty shufflevector input");
lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
 1105   if (Instrs.empty())
lib/Target/AVR/AVRInstrInfo.cpp
  411   if (Cond.empty()) {
lib/Target/BPF/BPFInstrInfo.cpp
  230   if (Cond.empty()) {
lib/Target/Hexagon/HexagonInstrInfo.cpp
  593   if (!Cond.empty() && Cond[0].isImm())
  597     if (Cond.empty()) {
  650   assert((!Cond.empty()) &&
 1562   if (Cond.empty() || isNewValueJump(Cond[0].getImm()) ||
 3142   if (Cond.empty() || !isPredicated(Cond[0].getImm()))
 4261   if (Cond.empty())
 4428   return Cond.empty() || (Cond[0].isImm() && (Cond.size() != 1));
lib/Target/Lanai/LanaiInstrInfo.cpp
  671   if (Condition.empty()) {
lib/Target/MSP430/MSP430InstrInfo.cpp
  277   if (Cond.empty()) {
lib/Target/Mips/MipsCallLowering.cpp
  422   if (!VRegs.empty()) {
lib/Target/Mips/MipsInstrInfo.cpp
  147   if (Cond.empty())
lib/Target/NVPTX/NVPTXInstrInfo.cpp
  195     if (Cond.empty()) // Unconditional branch
lib/Target/PowerPC/PPCInstrInfo.cpp
  718     if (Cond.empty())   // Unconditional branch
lib/Target/RISCV/RISCVInstrInfo.cpp
  347   if (Cond.empty()) {
lib/Target/Sparc/SparcInstrInfo.cpp
  253   if (Cond.empty()) {
lib/Target/SystemZ/SystemZInstrInfo.cpp
  493   if (Cond.empty()) {
lib/Target/WebAssembly/MCTargetDesc/WebAssemblyTargetStreamer.cpp
   55   if (!Types.empty()) {
lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp
  184   if (Cond.empty()) {
lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
  524     if (Instrs.empty()) return 0;
lib/Target/X86/X86CallLowering.cpp
  190   assert(((Val && !VRegs.empty()) || (!Val && VRegs.empty())) &&
  190   assert(((Val && !VRegs.empty()) || (!Val && VRegs.empty())) &&
  194   if (!VRegs.empty()) {
lib/Target/X86/X86ISelLowering.cpp
 2923   if (Outs.empty())
 2937   if (Ins.empty())
 3377     if (!ArgXMMs.empty()) {
 3423     if (!ArgXMMs.empty() && NumXMMRegs != ArgXMMs.size()) {
13662     if (InPlaceInputs.empty())
13670     if (IncomingInputs.empty()) {
13712     if (IncomingInputs.empty())
13715     if (ExistingInputs.empty()) {
32293   assert(!BaseMask.empty() && "Cannot combine an empty shuffle mask!");
lib/Target/X86/X86InstrInfo.cpp
 2781   if (Cond.empty()) {
lib/Target/X86/X86InterleavedAccess.cpp
  811   assert(!Shuffles.empty() && "Empty shufflevector input");
lib/Target/XCore/XCoreInstrInfo.cpp
  284     if (Cond.empty()) {
lib/Transforms/IPO/FunctionImport.cpp
  269   if (!VI.getSummaryList().empty())
  580       if (!FailureInfo->VI.getSummaryList().empty())
  598     if (!SL.empty())
lib/Transforms/IPO/LowerTypeTests.cpp
 1480   assert(!Functions.empty());
 1561   assert(!Functions.empty());
 1635       Globals.empty() || isa<GlobalVariable>(Globals[0]->getGlobal());
lib/Transforms/IPO/WholeProgramDevirt.cpp
  892   if (Callee.getSummaryList().empty())
lib/Transforms/InstCombine/InstCombineSelect.cpp
 2650   if (!CondVal->getType()->isVectorTy() && !AC.assumptions().empty()) {
lib/Transforms/Instrumentation/SanitizerCoverage.cpp
  711   if (AllBlocks.empty()) return false;
  727   if (IndirCalls.empty())
lib/Transforms/Scalar/MergeICmps.cpp
  572     assert(!Comparisons.empty() && "no basic block");
  610   assert(!Comparisons.empty() && "merging zero comparisons");
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
 1273   if (LiveVariables.empty())
 1892   if (Values.empty())
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
 1144     assert(ClonedL.getBlocks().empty() && "Must start with an empty loop!");
 2859     if (!NewLoops.empty())
lib/Transforms/Utils/BasicBlockUtils.cpp
  644   if (Preds.empty()) {
  655   if (!Preds.empty()) {
lib/Transforms/Utils/CodeExtractor.cpp
  198   assert(!BBs.empty() && "The set of blocks to extract must be non-empty");
 1044   if (!LifetimesStart.empty()) {
 1050   if (!LifetimesEnd.empty()) {
lib/Transforms/Utils/LoopUtils.cpp
  811     if (!RedOps.empty())
  853     if (!RedOps.empty())
lib/Transforms/Utils/PromoteMemoryToRegister.cpp
 1003   if (Allocas.empty())
lib/Transforms/Utils/SSAUpdater.cpp
  339   if (Insts.empty()) return;
lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
  971   if (NewChain.empty()) {
 1122   if (NewChain.empty()) {
lib/Transforms/Vectorize/SLPVectorizer.cpp
  887       assert(!VL.empty() && "Bad VL");
 1337       if (ReorderIndices.empty())
 3000         if (!E->ReorderIndices.empty()) {
 3174       if (!E->ReorderIndices.empty()) {
 3545   if (VL.empty())
 3795         if (!E->ReorderIndices.empty()) {
 3804           if (E->ReorderIndices.empty())
 3833         if (!E->ReorderIndices.empty()) {
lib/Transforms/Vectorize/VPlan.h
  804     if (!Masks.empty())
lib/Transforms/Vectorize/VPlanSLP.cpp
  361   assert(!Values.empty() && "Need some operands!");
lib/XRay/Profile.cpp
  144   if (P.empty())
tools/clang/include/clang/AST/Comment.h
  482     if (!Attrs.empty()) {
  555     if (Content.empty()) {
  843     return !Position.empty();
 1099     if (Blocks.empty())
tools/clang/include/clang/AST/CommentParser.h
   73     if (Toks.empty())
tools/clang/include/clang/AST/CommentSema.h
   81     if (!Source.empty())
tools/clang/include/clang/AST/Decl.h
 2337   bool param_empty() const { return parameters().empty(); }
 4055   bool param_empty() const { return parameters().empty(); }
tools/clang/include/clang/AST/DeclBase.h
 1239   bool empty() const { return Result.empty(); }
tools/clang/include/clang/AST/DeclOpenMP.h
  268   bool clauselist_empty() const { return Clauses.empty(); }
tools/clang/include/clang/AST/ExprCXX.h
 4133     assert((!Length || PartialArgs.empty()) &&
tools/clang/include/clang/AST/OpenMPClause.h
 4610       if (!DeclsListNum.empty())
tools/clang/include/clang/AST/Type.h
 5505     if (!protocols.empty())
tools/clang/include/clang/AST/VTableBuilder.h
  281     if (VTableIndices.empty())
  287     if (VTableIndices.empty()) {
  295     if (VTableIndices.empty()) {
tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h
 1379   if (InnerMatchers.empty()) {
tools/clang/include/clang/Analysis/AnyCall.h
  154   bool param_empty() const { return parameters().empty(); }
tools/clang/include/clang/CodeGen/CGFunctionInfo.h
  698     ID.AddBoolean(!paramInfos.empty());
  699     if (!paramInfos.empty()) {
tools/clang/include/clang/Lex/MacroInfo.h
  168     if (List.empty())
  576     return getLocalDirective() || !ModuleMacros.empty();
  581     if (!ModuleMacros.empty())
tools/clang/include/clang/Lex/Preprocessor.h
  679         if (Overrides.empty())
tools/clang/include/clang/Sema/Overload.h
 1054       assert((Conversions.empty() || Conversions.size() == NumConversions) &&
 1059       C.Conversions = Conversions.empty()
tools/clang/lib/ARCMigrate/ARCMT.cpp
   37     if ((IDs.empty() || // empty means clear all diagnostics in the range.
   66     if ((IDs.empty() || // empty means any diagnostic in the range.
tools/clang/lib/ARCMigrate/PlistReporter.cpp
  105     if (!D.getRanges().empty()) {
tools/clang/lib/AST/ASTContext.cpp
  464   if (Comments.empty() || Decls.empty())
 4527   if (Protocols.empty()) return true;
 4568   if (typeArgs.empty() && protocols.empty() && !isKindOf &&
 4568   if (typeArgs.empty() && protocols.empty() && !isKindOf &&
 4583   if (effectiveTypeArgs.empty()) {
 4728   if (!protocols.empty()) {
tools/clang/lib/AST/Decl.cpp
 1850   assert(!TPLists.empty());
 1924   if (!TPLists.empty()) {
 3197   if (!NewParamInfo.empty()) {
 4143   assert(!TPLists.empty());
 4471   if (!NewParamInfo.empty()) {
 4483   if (Captures.empty()) {
tools/clang/lib/AST/DeclFriend.cpp
   52     assert(FriendTypeTPLists.empty());
tools/clang/lib/AST/DeclObjC.cpp
  867   if (Params.empty() && SelLocs.empty())
  867   if (Params.empty() && SelLocs.empty())
  889   assert((!SelLocs.empty() || isImplicit()) &&
tools/clang/lib/AST/DeclOpenMP.cpp
  203   assert(Clauses.empty() && "Number of clauses should be 0 on initialization");
tools/clang/lib/AST/DeclTemplate.cpp
  571   if (!ExpandedTypes.empty() && !ExpandedTInfos.empty()) {
  571   if (!ExpandedTypes.empty() && !ExpandedTInfos.empty()) {
  649   if (!Expansions.empty())
tools/clang/lib/AST/ExprConstant.cpp
 6908         if (Args.empty())
tools/clang/lib/AST/ExprObjC.cpp
  212   assert((!SelLocs.empty() || isImplicit) &&
  231   assert((!SelLocs.empty() || isImplicit) &&
  250   assert((!SelLocs.empty() || isImplicit) &&
tools/clang/lib/AST/MicrosoftMangle.cpp
 1516     if (TemplateArgs.empty()) {
tools/clang/lib/AST/Stmt.cpp
  358   assert(!Attrs.empty() && "Attrs should not be empty");
 1259   if (!Captures.empty()) {
tools/clang/lib/AST/StmtPrinter.cpp
 1953   if (!Node->getExplicitTemplateParameters().empty()) {
tools/clang/lib/AST/TemplateBase.cpp
  108   if (Args.empty())
tools/clang/lib/AST/Type.cpp
  680   if (!typeArgs.empty())
 1198     if (!TypeArgs.empty()) {
 1330           if (TypeArgs.empty() &&
tools/clang/lib/Analysis/PathDiagnostic.cpp
  893   if (TAList.empty())
tools/clang/lib/Basic/Builtins.cpp
   44   assert(TSRecords.empty() && "Already initialized target?");
tools/clang/lib/Basic/IdentifierTable.cpp
  416   assert(!Names.empty() && "must have >= 1 selector slots");
tools/clang/lib/Basic/Module.cpp
  231     if (nameParts.empty() || M->Name != nameParts.back())
  235   return nameParts.empty();
tools/clang/lib/CodeGen/CGCall.cpp
  709   if (!sigParamInfos.empty()) {
  803   assert(paramInfos.empty() || paramInfos.size() == argTypes.size());
  827   FI->HasExtParameterInfos = !paramInfos.empty();
 4275   if (!CallArgs.getCleanupsToDeactivate().empty())
tools/clang/lib/CodeGen/CGExpr.cpp
 3072     if (!StaticArgs.empty()) {
tools/clang/lib/CodeGen/CGExprConstant.cpp
  394   if (Elems.empty())
tools/clang/lib/CodeGen/CGObjCGNU.cpp
 2770   if (Methods.empty())
 2841   if (IvarNames.empty())
tools/clang/lib/CodeGen/CGObjCMac.cpp
 2489   if (RecFields.empty())
 3322   if (MethodTypes.empty())
 3932   if (methods.empty())
 6660   if (methods.empty())
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 3364   if (!CopyprivateVars.empty()) {
 4396   if (!Privates.empty()) {
 4925   assert(!Privates.empty());
 7620         if (!OverlappedElements.empty()) {
 7968         assert(!L.second.empty() && "Not expecting empty list of components!");
 8030         assert(!L.Components.empty() &&
 8139         assert(!L.Components.empty() &&
 8292         assert(!L.second.empty() &&
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
  235   if (EscapedDecls.empty() && EscapedDeclsForTeams.empty())
  235   if (EscapedDecls.empty() && EscapedDeclsForTeams.empty())
 2547     if (!CapturedVars.empty()) {
 2591     if (!CapturedVars.empty())
 4689   if (!GlobalizedVarsRecord && EscapedVariableLengthDecls.empty())
tools/clang/lib/CodeGen/ConstantInitBuilder.cpp
  266   if (ty == nullptr && elts.empty())
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp
 2293   if (CXXThreadLocalInits.empty())
 2733   if (!MemberPointerPath.empty()) {
tools/clang/lib/Frontend/CompilerInstance.cpp
 1481     if (getSourceManager().getModuleBuildStack().empty() &&
tools/clang/lib/Frontend/DependencyFile.cpp
  368   if (PhonyTarget && !Files.empty()) {
tools/clang/lib/Frontend/DiagnosticRenderer.cpp
  106     if (!FixItHints.empty()) {
tools/clang/lib/Frontend/FrontendAction.cpp
  505   if (SourceMgr.getModuleBuildStack().empty())
tools/clang/lib/Frontend/TextDiagnostic.cpp
  863   if (DiagOpts->ShowSourceRanges && !Ranges.empty()) {
 1074   if (Hints.empty() || !DiagOpts->ShowFixits)
 1152   if (Loc == LastLoc && Ranges.empty() && Hints.empty() &&
tools/clang/lib/Index/IndexSymbol.cpp
   34   if (!D->parameters().empty())
tools/clang/lib/Index/IndexingContext.cpp
  112   if (!IdLocs.empty())
  138   if (!ImportD->isImplicit() && Mod->Parent && !IdLocs.empty()) {
tools/clang/lib/Lex/HeaderSearch.cpp
  775   if (!Includers.empty() && !isAngled && !NoCurDirSearch) {
  963     if (!Includers.empty())
  977   if (!Includers.empty() && Includers.front().first && !isAngled &&
tools/clang/lib/Lex/LiteralSupport.cpp
 1466   if (StringToks.empty() || StringToks[0].getLength() < 2)
 1473   assert(!StringToks.empty() && "expected at least one token");
tools/clang/lib/Lex/MacroArgs.cpp
   64   if (!UnexpArgTokens.empty()) {
tools/clang/lib/Lex/PPLexerChange.cpp
  683           Macro.second.getOverriddenMacros().empty())
  801         if (Def || !Macro.getOverriddenMacros().empty())
tools/clang/lib/Lex/PPMacroExpansion.cpp
  270   if (State && !State->getOverriddenMacros().empty()) {
  305     if (!MM->overrides().empty()) {
 1026   if (tokens.empty())
tools/clang/lib/Parse/ParsePragma.cpp
 1044   if (Toks.empty() && IsLoopHint) {
 1052   assert(!Toks.empty() &&
 1414   if (Info->Action == PragmaAttributeInfo::Push && Info->Tokens.empty()) {
tools/clang/lib/Parse/ParseStmtAsm.cpp
  301   assert(!AsmToks.empty() && "Didn't expect an empty AsmToks!");
tools/clang/lib/Sema/DeclSpec.cpp
  267   if (!DeclsInPrototype.empty()) {
tools/clang/lib/Sema/DelayedDiagnostic.cpp
   32   assert(!Locs.empty());
tools/clang/lib/Sema/JumpDiagnostics.cpp
  820   if (CHECK_PERMISSIVE(ToScopes.empty()))
tools/clang/lib/Sema/SemaChecking.cpp
 5583     *LastParam = Params.empty() ? nullptr : Params.back();
tools/clang/lib/Sema/SemaCodeComplete.cpp
 4019   if (Path.empty()) {
 4295   if (!Parameters.empty()) {
 5097   if (Candidates.empty())
 5589   bool SawLastInitializer = Initializers.empty();
 5663           !Initializers.empty() && Initializers.back()->isBaseInitializer() &&
 5678           !Initializers.empty() && Initializers.back()->isBaseInitializer() &&
 5692       SawLastInitializer = !Initializers.empty() &&
 8391   if (!AtParameterName && !SelIdents.empty() &&
tools/clang/lib/Sema/SemaDecl.cpp
 4466     !TemplateParams.empty() && TemplateParams.back()->size() == 0;
 6491     if (!Decomp.bindings().empty()) {
11164   if (DeduceInits.empty()) {
12915   if (Group.empty() || !Group[0])
16409   if (!Fields.empty() && isa<ObjCContainerDecl>(EnclosingDecl)) {
tools/clang/lib/Sema/SemaDeclCXX.cpp
  701   if (!TemplateParamLists.empty()) {
 1128   if (Bindings.empty())
 2622  if (Bases.empty())
 2728   if (!ClassDecl || Bases.empty())
 4948     if (!Initializers.empty()) {
14801   if (!TempParams.empty())
tools/clang/lib/Sema/SemaDeclObjC.cpp
  635     if (!SuperTypeArgs.empty()) {
tools/clang/lib/Sema/SemaExpr.cpp
 1637   assert(!StringToks.empty() && "Must have at least one string!");
 5623       if (!ArgExprs.empty()) {
17107     if (!Stmts.empty() && getCurFunctionOrMethodDecl()) {
17572     if (ParamTypes.empty() && Proto->isVariadic()) { // the special case
17704       if (DRE && Proto && Proto->getParamTypes().empty() && Proto->isVariadic()) {
tools/clang/lib/Sema/SemaExprCXX.cpp
 2088     if (PlacementArgs.empty() && !PassAlignment &&
 2425       if (PlaceArgs.empty()) {
 2502   bool isPlacementNew = !PlaceArgs.empty() || OperatorNew->param_size() != 1 ||
 2613         SourceRange R = PlaceArgs.empty()
 4937     assert(!Args.empty());
tools/clang/lib/Sema/SemaExprObjC.cpp
 1560   if (!SelectorLocs.empty() && SelectorLocs.front().isValid())
 2340       Args.empty())
 2465   if (!SelectorLocs.empty() && SelectorLocs.front().isValid())
 2689   if (!SelectorLocs.empty() && SelectorLocs.front().isValid())
tools/clang/lib/Sema/SemaInit.cpp
 4067     if (!(UnwrappedArgs.empty() && DestRecordDecl->hasDefaultConstructor()))
 5674       (Kind.getKind() == InitializationKind::IK_Direct && Args.empty())) {
 8712     if (Args.empty()) {
tools/clang/lib/Sema/SemaLambda.cpp
  420   if (!Params.empty()) {
  530   assert(!TParams.empty() &&
tools/clang/lib/Sema/SemaLookup.cpp
 5333   assert(!Modules.empty());
tools/clang/lib/Sema/SemaModule.cpp
  380   if (Path.empty()) {
tools/clang/lib/Sema/SemaOpenMP.cpp
 2601   if (Clauses.empty()) {
 2687   if (!TargetLocations.empty()) {
 6852   if (!PreInits.empty()) {
 6876   if (!PostUpdates.empty()) {
 8154   } else if (TC || Clauses.empty()) {
14317   if (VarList.empty())
14888   assert(!CurComponents.empty() && "Map clause expression with no components!");
14903         assert(!StackComponents.empty() &&
tools/clang/lib/Sema/SemaStmt.cpp
 4082   assert(!Handlers.empty() &&
tools/clang/lib/Sema/SemaTemplate.cpp
 2738     if (!ParamLists.empty())
 6482       if (!Value.getMemberPointerPath().empty()) {
tools/clang/lib/Sema/SemaTemplateInstantiate.cpp
 2926   if (Exprs.empty())
tools/clang/lib/Sema/SemaTemplateVariadic.cpp
  293   if (Unexpanded.empty())
tools/clang/lib/Sema/SemaType.cpp
 1045   if (!Protocols.empty()) {
 1072   if (!TypeArgs.empty()) {
 1081   if (!Protocols.empty()) {
tools/clang/lib/Sema/TreeTransform.h
 5567   if (ESI.Exceptions.empty())
10880     AllEmptyPacks &= Decls.empty();
13051     if (UPD->expansions().empty()) {
tools/clang/lib/Serialization/ASTReader.cpp
 1945     if (MacroCursor.getBitcodeBytes().empty())
 8018   if (DInfo.Decls.empty())
 8605   if (Visitor.getInstanceMethods().empty() &&
 8606       Visitor.getFactoryMethods().empty())
tools/clang/lib/Serialization/ASTWriterDecl.cpp
 1386   Record.push_back(!IdentifierLocs.empty());
 1387   if (IdentifierLocs.empty()) {
tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
 2804   assert(!bugReports.empty());
 3208   assert(!bugReports.empty());
tools/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp
  193   if (Ranges.empty())
 1093   if (MacroArgs.empty())
tools/clang/lib/Tooling/AllTUsExecution.cpp
   81   if (Actions.empty())
tools/clang/lib/Tooling/InterpolatingCompilationDatabase.cpp
  247     return !CmdLine.empty() &&
  472     assert(!Idx.empty());
tools/clang/lib/Tooling/Refactoring/Rename/SymbolOccurrences.cpp
   22   assert(!Locations.empty() && "no locations");
tools/clang/lib/Tooling/StandaloneExecution.cpp
   56   if (Actions.empty())
tools/clang/lib/Tooling/Syntax/BuildTree.cpp
   61     assert(!Tokens.empty());
  102       assert(!A.tokenBuffer().expandedTokens().empty());
  113       assert(!Range.empty());
  127       assert(!NodeTokens.empty());
tools/clang/lib/Tooling/Syntax/Tokens.cpp
  172   if (Expanded.empty())
  578     if (Tokens.empty()) {
tools/clang/lib/Tooling/Syntax/Tree.cpp
   70   assert(!Tokens.empty());
tools/clang/tools/arcmt-test/arcmt-test.cpp
  225   assert(!resultFiles.empty());
tools/clang/tools/clang-refactor/ClangRefactor.cpp
  539       if (Visitor.getMissingRequiredOptions().empty()) {
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/SpecialMemberFunctionsCheck.cpp
   84   assert(!SMFS.empty() &&
tools/clang/tools/extra/clangd/Diagnostics.cpp
  534     assert(!Info.getFixItHints().empty() &&
  605     if (!Info.getFixItHints().empty())
  627     if (!Info.getFixItHints().empty()) {
tools/clang/tools/extra/clangd/FileDistance.cpp
  194       QueryScopes.empty() ? "" : QueryScopes.front().c_str();
tools/clang/tools/extra/clangd/QueryDriverDatabase.cpp
  186   assert(!Globs.empty() && "Globs cannot be empty!");
  278   if (QueryDriverGlobs.empty())
tools/clang/tools/extra/clangd/SemanticHighlighting.cpp
  143     for (ArrayRef<HighlightingToken> TokRef = Tokens; !TokRef.empty();) {
tools/clang/tools/extra/clangd/index/dex/PostingList.cpp
   28     if (!Chunks.empty()) {
  169   assert(!Documents.empty() && "Can't encode empty sequence.");
  188   if (Bytes.front() == 0 || Bytes.empty())
  192   for (size_t Length = 0; HasNextByte && !Bytes.empty(); ++Length) {
  209   for (DocID Current = Head; !Bytes.empty(); Current += Delta) {
tools/clang/tools/extra/clangd/unittests/ParsedASTTests.cpp
  193   ASSERT_FALSE(Spelled.empty());
tools/clang/tools/libclang/CIndex.cpp
 4704       if (!Locs.empty())
tools/clang/tools/libclang/CIndexer.cpp
  188   if (!InvocationArgs.empty()) {
  196   if (!UnsavedFiles.empty()) {
tools/clang/utils/TableGen/ClangAttrEmitter.cpp
 2142   return !Arg->getSuperClasses().empty() &&
 2151   return !Arg->getSuperClasses().empty() &&
 2199   return !Arg->getSuperClasses().empty() &&
 2254     assert(!Supers.empty() && "Forgot to specify a superclass for the attr");
tools/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
  142   assert(!LHS->getLoc().empty() && !RHS->getLoc().empty());
  142   assert(!LHS->getLoc().empty() && !RHS->getLoc().empty());
tools/clang/utils/TableGen/ClangOpcodesEmitter.cpp
  344   if (Types.empty())
tools/clang/utils/TableGen/NeonEmitter.cpp
  443   bool hasBody() const { return Body && !Body->getValues().empty(); }
 1491   if (!Body || Body->getValues().empty()) {
tools/lld/COFF/Chunks.cpp
  355   if (!a.empty())
  601   if (data.empty())
tools/lld/COFF/InputFiles.cpp
  698   if (data.empty())
  752   if (!data.empty())
  757   if (data.empty())
tools/lld/ELF/Arch/MipsArchTree.cpp
   67   assert(!files.empty() && "expected non-empty file list");
tools/lld/ELF/EhFrame.cpp
   83   if (d.empty())
  112   while (!d.empty()) {
tools/lld/ELF/InputFiles.cpp
  546       if (entries.empty())
  714   while (!data.empty()) {
  735     while (!desc.empty()) {
  817     if (!data.empty() && data.back() != '\0') {
tools/lld/ELF/Relocations.cpp
  910     if (pieces.empty())
tools/lld/ELF/SyntheticSections.cpp
  187     while (!d.empty()) {
tools/lld/ELF/Writer.cpp
  404       if (!namedVersionDefs().empty()) {
 2672   if (!arr.empty())
tools/lld/lib/Driver/DarwinLdDriver.cpp
  303   if (!ctx.llvmOptions().empty()) {
tools/lld/lib/ReaderWriter/MachO/CompactUnwindPass.cpp
  345     } while (!remainingInfos.empty());
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
 1025     if (s.content.empty())
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp
  325   if (symbols.empty() && section.content.empty())
tools/lld/wasm/InputChunks.cpp
   96   if (relocations.empty())
  147   if (relocations.empty())
tools/lldb/source/Breakpoint/BreakpointIDList.cpp
   87   if(string_array.empty())
tools/lldb/source/Host/common/Editline.cpp
  882   assert(!results.empty());
tools/lldb/source/Interpreter/OptionArgParser.cpp
   51   if (enum_values.empty()) {
tools/lldb/source/Interpreter/Options.cpp
  206     if (defs.empty())
  331   if (opt_defs.empty())
  597       if (!opt_defs[i].enum_values.empty()) {
  751   if (!enum_values.empty())
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp
  531   m_imported_cpp_modules = !imported_modules.empty();
tools/lldb/source/Plugins/Language/CPlusPlus/MSVCUndecoratedNameParser.cpp
   94   if (specs.empty())
tools/lldb/source/Plugins/Process/Linux/ProcessorTrace.cpp
  354   if (dst.empty() || src.empty()) {
  354   if (dst.empty() || src.empty()) {
tools/lldb/source/Plugins/Process/minidump/MinidumpParser.cpp
  124   if (teb_mem.empty())
  363   if (!data64.empty()) {
  369     if (memory64_list.empty())
  417   if (data.empty())
  496   if (data.empty())
  503   if (memory64_list.empty())
tools/lldb/source/Plugins/Process/minidump/ProcessMinidump.cpp
  316   if (mem.empty()) {
  452         const bool match = dmp_bytes.empty() || mod_bytes.empty() ||
  452         const bool match = dmp_bytes.empty() || mod_bytes.empty() ||
  786       if (!bytes.empty()) {
  795       if (!bytes.empty()) {
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
 2457   if (pattern.empty())
tools/lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp
  109   if (args.empty())
  242     if (scopes.empty())
  396   lldbassert(!nodes.empty());
  400   while (!nodes.empty()) {
  509   if (specs.empty())
  550   if (!name_components.empty()) {
  568   while (!name_components.empty()) {
tools/lldb/source/Plugins/SymbolFile/NativePDB/PdbUtil.cpp
   38   while (!gaps.empty()) {
tools/lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp
 1023   if (specs.empty())
tools/lldb/source/Utility/Log.cpp
  210   uint32_t flags = categories.empty()
  225   uint32_t flags = categories.empty()
tools/lldb/source/Utility/StringExtractor.cpp
  268   while (!dest.empty() && GetBytesLeft() > 0) {
  276   if (!dest.empty())
  288   while (!dest.empty()) {
tools/lldb/tools/lldb-test/FormatUtil.cpp
   42   if (Data.empty()) {
   55   if (Data.empty()) {
tools/lldb/tools/lldb-vscode/LLDBUtils.cpp
   17   if (commands.empty())
tools/lldb/unittests/tools/lldb-server/tests/TestClient.cpp
   92   if (!InferiorArgs.empty()) {
  120   if (!InferiorArgs.empty()) {
tools/llvm-cov/SourceCoverageView.cpp
  123   if (Segments.empty())
tools/llvm-cov/SourceCoverageViewHTML.cpp
  514   Snip(LCol - 1, Segments.empty() ? 0 : (Segments.front()->Col - 1));
  564   if (Color.hasValue() && Segments.empty())
tools/llvm-elfabi/ELFObjHandler.cpp
   83   if (DynTable.empty())
tools/llvm-exegesis/lib/Analysis.cpp
  106   while (!Bytes.empty()) {
tools/llvm-exegesis/lib/Clustering.cpp
   65     if (Measurements.empty()) // Error point.
  208          return !PointsOfOpcode.empty(); // Ignore opcodes with no points.
tools/llvm-exegesis/lib/SnippetRepetitor.cpp
   31       if (!Instructions.empty()) {
tools/llvm-lipo/llvm-lipo.cpp
  464   assert(!VerifyArchList.empty() &&
tools/llvm-objcopy/COFF/COFFObjcopy.cpp
   36   if (Obj.getSections().empty())
tools/llvm-objcopy/COFF/Writer.cpp
  202     if (!Obj.getSections().empty()) {
tools/llvm-objcopy/ELF/ELFObjcopy.cpp
  288       if (Sec.OriginalData.empty())
tools/llvm-objcopy/ELF/Object.cpp
  313   while (!Data.empty()) {
 1343       GroupSec->Contents.empty())
tools/llvm-objcopy/MachO/MachOLayoutBuilder.cpp
  300           O.Rebases.Opcodes.empty() ? 0 : StartOfRebaseInfo;
  303           O.Binds.Opcodes.empty() ? 0 : StartOfBindingInfo;
  306           O.WeakBinds.Opcodes.empty() ? 0 : StartOfWeakBindingInfo;
  309           O.LazyBinds.Opcodes.empty() ? 0 : StartOfLazyBindingInfo;
  312           O.Exports.Trie.empty() ? 0 : StartOfExportTrie;
tools/llvm-objdump/COFFDump.cpp
  466     if (Contents.empty())
  587   if (XContents.empty())
tools/llvm-objdump/MachODump.cpp
 7488     if (Bytes.empty())
tools/llvm-pdbutil/BytesOutputStyle.cpp
  295   assert(!Indices.empty());
tools/llvm-pdbutil/FormatUtil.cpp
   77   while (!Opts.empty()) {
   82     if (!Opts.empty()) {
tools/llvm-pdbutil/LinePrinter.cpp
  106   if (!Data.empty()) {
  119   if (!Data.empty()) {
  145   assert(!Blocks.empty());
  149   while (!Blocks.empty()) {
  253     assert(!Blocks.empty());
tools/llvm-pdbutil/MinimalTypeDumper.cpp
  302   if (Indices.empty())
  317   if (Indices.empty())
tools/llvm-rc/ResourceScriptParser.cpp
  323   assert(!FlagDesc.empty());
tools/llvm-readobj/ELFDumper.cpp
 1495     IsPhdrTableValid = !FromPhdr.getAsArrayRef<Elf_Dyn>().empty();
 1508     IsSecTableValid = !FromSec.getAsArrayRef<Elf_Dyn>().empty();
 2292   bool hasGot() const { return !GotEntries.empty(); }
 2293   bool hasPlt() const { return !PltEntries.empty(); }
 2339     : IsStatic(DynTable.empty()), Obj(Obj), GotSec(nullptr), LocalNum(0),
 2514   return PltEntries.empty() ? nullptr : &PltEntries[0];
 2668   while (!Sec.empty()) {
 2734   if (Arr.empty())
 2747   if (Arr.empty())
 3667   if (Table.empty())
 4022     if (Chains.empty() || NBucket == 0)
 4398   if (!Arr.empty())
 4655     } else if (!Descriptor.empty()) {
 4664   if (Obj->getHeader()->e_type != ELF::ET_CORE && !Sections.empty()) {
 5010   if (!Parser.getLocalEntries().empty()) {
 5024   if (!Parser.getGlobalEntries().empty()) {
 5055   if (!Parser.getOtherEntries().empty())
 5080   if (!Parser.getPltEntries().empty()) {
 5498   if (Table.empty())
 5901     } else if (!Descriptor.empty()) {
 5907   if (Obj->getHeader()->e_type != ELF::ET_CORE && !Sections.empty()) {
tools/llvm-readobj/Win64EHDumper.cpp
  295   if (Contents.empty())
  322     if (Contents.empty())
tools/llvm-readobj/XCOFFDumper.cpp
  150     if (Relocations.empty())
tools/llvm-xray/xray-color-helper.cpp
  182   assert(!ColorMap.empty() && "ColorMap must not be empty!");
  183   assert(!BoundMap.empty() && "BoundMap must not be empty!");
tools/obj2yaml/elf2yaml.cpp
  532   if (Content.empty() || !Cur) {
  651     if (!Content.empty())
  701   while (!Content.empty()) {
tools/polly/lib/Analysis/ScopBuilder.cpp
 3625       assert(!List.empty());
tools/polly/lib/Analysis/ScopInfo.cpp
 2447   if (!StmtList.empty())
tools/polly/lib/CodeGen/BlockGenerators.cpp
 1671     assert(!Incoming.empty() &&
tools/polly/lib/Support/RegisterPasses.cpp
  634   if (!Pipeline.empty()) {
tools/polly/lib/Transform/DeLICM.cpp
  813       assert(!Incoming.empty());
unittests/ADT/ArrayRefTest.cpp
  226   EXPECT_TRUE(A.empty());
  229   EXPECT_TRUE(A.empty());
unittests/ADT/TinyPtrVectorTest.cpp
   73     EXPECT_EQ(Values.empty(), V.empty());
unittests/DebugInfo/CodeView/TypeHashingTest.cpp
   52   assert(!Hashes.empty());
unittests/ProfileData/CoverageMappingTest.cpp
   93     if (Functions.empty())
unittests/Support/BinaryStreamTest.cpp
   67     if (SrcData.empty())
  135     if (!Input.empty()) {
  233       EXPECT_FALSE(Buffer.empty());
  246       EXPECT_FALSE(Buffer.empty());
  253       EXPECT_FALSE(Buffer.empty());
unittests/Transforms/Utils/LocalTest.cpp
  531       return DI.getExpression()->getElements().empty();
utils/TableGen/CTagsEmitter.cpp
   61   return !Locs.empty() ? Locs.front() : SMLoc();
utils/TableGen/CodeGenSchedule.cpp
  271   if (Indices.empty())
  847   assert(!Seq.empty() && "cannot insert empty sequence");
 1011   assert(!ProcIndices.empty() && "expect at least one ProcIdx");
utils/TableGen/InstrInfoEmitter.cpp
  370   if (!NumberedInstructions.empty()) {
utils/TableGen/RegisterInfoEmitter.cpp
 1020     assert(!Roots.empty() && "All regunits must have a root register.");
 1353       if (Supers.empty())
 1373           if (!Elems.empty()) {
 1385           if (RC.getOrder(oi).empty())
 1411       if (RC.getSuperClasses().empty())