[PATCH] D23430: Scalarizer: Initialize members set during doInitialization
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 11 15:32:37 PDT 2016
arsenm created this revision.
arsenm added a subscriber: llvm-commits.
Herald added a subscriber: aemerson.
Mesa had a bug where doInitialization wasn't being called.
It seems harmless to initialize the members just in case
it isn't called.
https://reviews.llvm.org/D23430
Files:
lib/Transforms/Scalar/Scalarizer.cpp
Index: lib/Transforms/Scalar/Scalarizer.cpp
===================================================================
--- lib/Transforms/Scalar/Scalarizer.cpp
+++ lib/Transforms/Scalar/Scalarizer.cpp
@@ -175,8 +175,8 @@
ScatterMap Scattered;
GatherList Gathered;
- unsigned ParallelLoopAccessMDKind;
- bool ScalarizeLoadStore;
+ unsigned ParallelLoopAccessMDKind = 0;
+ bool ScalarizeLoadStore = false;
};
char Scalarizer::ID = 0;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23430.67761.patch
Type: text/x-patch
Size: 441 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160811/8fa924a5/attachment.bin>
More information about the llvm-commits
mailing list