[llvm] r228936 - Fix accidental bit flip.
Benjamin Kramer
benny.kra at googlemail.com
Thu Feb 12 08:30:00 PST 2015
Author: d0k
Date: Thu Feb 12 10:30:00 2015
New Revision: 228936
URL: http://llvm.org/viewvc/llvm-project?rev=228936&view=rev
Log:
Fix accidental bit flip.
Modified:
llvm/trunk/lib/ProfileData/CoverageMapping.cpp
Modified: llvm/trunk/lib/ProfileData/CoverageMapping.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ProfileData/CoverageMapping.cpp?rev=228936&r1=228935&r2=228936&view=diff
==============================================================================
--- llvm/trunk/lib/ProfileData/CoverageMapping.cpp (original)
+++ llvm/trunk/lib/ProfileData/CoverageMapping.cpp Thu Feb 12 10:30:00 2015
@@ -363,10 +363,10 @@ static Optional<unsigned> findMainViewFi
}
static Optional<unsigned> findMainViewFileID(const FunctionRecord &Function) {
- SmallBitVector IsNotExpandedFile(Function.Filenames.size(), false);
+ SmallBitVector IsNotExpandedFile(Function.Filenames.size(), true);
for (const auto &CR : Function.CountedRegions)
if (CR.Kind == CounterMappingRegion::ExpansionRegion)
- IsNotExpandedFile[CR.ExpandedFileID] = true;
+ IsNotExpandedFile[CR.ExpandedFileID] = false;
int I = IsNotExpandedFile.find_first();
return I != -1 ? I : None;
}
More information about the llvm-commits
mailing list