mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
Fix accidental bit flip.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228936 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4301b5fd8b
commit
a858be4291
@ -363,10 +363,10 @@ static Optional<unsigned> findMainViewFileID(StringRef SourceFile,
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user