Skip to content

Commit bcb3d01

Browse files
initialize LineTy before using it
1 parent 4fd84db commit bcb3d01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/ProfileData/SampleProfReader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ std::error_code SampleProfileReaderText::readImpl() {
375375
StringRef FName;
376376
DenseMap<StringRef, uint64_t> TargetCountMap;
377377
uint32_t Depth, LineOffset, Discriminator;
378-
LineType LineTy;
378+
LineType LineTy = LineType::BodyProfile;
379379
uint64_t FunctionHash = 0;
380380
uint32_t Attributes = 0;
381381
bool IsFlat = false;

0 commit comments

Comments
 (0)