[WarnMissedTransforms] Set default to 1.
authorAlina Sbirlea <asbirlea@google.com>
Fri, 25 Jan 2019 20:51:55 +0000 (20:51 +0000)
committerAlina Sbirlea <asbirlea@google.com>
Fri, 25 Jan 2019 20:51:55 +0000 (20:51 +0000)
commit890a8e575f5b0d73711338357f204d95055a1023
tree4a1c238d27edaa055acb95edaf945357d9c76988
parent05a60643853865c0323acc30c80e2cf948186520
[WarnMissedTransforms] Set default to 1.

Summary:
Set default value for retrieved attributes to 1, since the check is against 1.
Eliminates the warning noise generated when the attributes are not present.

Reviewers: sanjoy

Subscribers: jlebar, llvm-commits

Differential Revision: https://reviews.llvm.org/D57253

llvm-svn: 352238
llvm/lib/Transforms/Scalar/WarnMissedTransforms.cpp