[llvm] r305528 - Try to fix uninitialized read reported by msan.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 15 16:44:19 PDT 2017
Author: zturner
Date: Thu Jun 15 18:44:19 2017
New Revision: 305528
URL: http://llvm.org/viewvc/llvm-project?rev=305528&view=rev
Log:
Try to fix uninitialized read reported by msan.
Modified:
llvm/trunk/tools/yaml2obj/yaml2obj.cpp
Modified: llvm/trunk/tools/yaml2obj/yaml2obj.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/yaml2obj/yaml2obj.cpp?rev=305528&r1=305527&r2=305528&view=diff
==============================================================================
--- llvm/trunk/tools/yaml2obj/yaml2obj.cpp (original)
+++ llvm/trunk/tools/yaml2obj/yaml2obj.cpp Thu Jun 15 18:44:19 2017
@@ -95,5 +95,6 @@ int main(int argc, char **argv) {
if (Res == 0)
Out->keep();
+ Out->os().flush();
return Res;
}
More information about the llvm-commits
mailing list