Skip to content

Commit 9b6b9d3

Browse files
committed
Default initialize a pointer in CodeExtractor.
This fixes msan failure after f6795e6
1 parent b468ed4 commit 9b6b9d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Utils/CodeExtractor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1465,7 +1465,7 @@ CodeExtractor::extractCodeRegion(const CodeExtractorAnalysisCache &CEAC,
14651465
: Suffix;
14661466

14671467
ValueSet StructValues;
1468-
StructType *StructTy;
1468+
StructType *StructTy = nullptr;
14691469
Function *newFunction = constructFunctionDeclaration(
14701470
inputs, outputs, EntryFreq, oldFunction->getName() + "." + SuffixToUse,
14711471
StructValues, StructTy);

0 commit comments

Comments
 (0)