[OpenMPOpt] Initialize value to avoid use of uninitialized memory

This should fix the issue reported here:
  https://reviews.llvm.org/D76058#1937554
This commit is contained in:
Johannes Doerfert 2020-03-23 19:14:34 -05:00
parent 02187ed45a
commit f09f4b2676
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ struct OpenMPOpt {
SmallVector<Type *, 8> ArgumentTypes;
/// The declaration if available.
Function *Declaration;
Function *Declaration = nullptr;
/// Uses of this runtime function per function containing the use.
DenseMap<Function *, SmallPtrSet<Use *, 16>> UsesMap;