Skip to content

Commit f09f4b2

Browse files
committed
[OpenMPOpt] Initialize value to avoid use of uninitialized memory
This should fix the issue reported here: https://reviews.llvm.org/D76058#1937554
1 parent 02187ed commit f09f4b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/IPO/OpenMPOpt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ struct OpenMPOpt {
7979
SmallVector<Type *, 8> ArgumentTypes;
8080

8181
/// The declaration if available.
82-
Function *Declaration;
82+
Function *Declaration = nullptr;
8383

8484
/// Uses of this runtime function per function containing the use.
8585
DenseMap<Function *, SmallPtrSet<Use *, 16>> UsesMap;

0 commit comments

Comments
 (0)