[PATCH] D20051: Fix use-of-uninitialized-value of ARMMachineFunctionInfo

Weiming Zhao via llvm-commits llvm-commits at lists.llvm.org
Sat May 7 17:38:57 PDT 2016


weimingz created this revision.
weimingz added a subscriber: llvm-commits.
weimingz set the repository for this revision to rL LLVM.
Herald added subscribers: rengolin, aemerson.

Explicitly initialize ArgumentStackSize to prevent the msan failure.

Repository:
  rL LLVM

http://reviews.llvm.org/D20051

Files:
  lib/Target/ARM/ARMMachineFunctionInfo.cpp

Index: lib/Target/ARM/ARMMachineFunctionInfo.cpp
===================================================================
--- lib/Target/ARM/ARMMachineFunctionInfo.cpp
+++ lib/Target/ARM/ARMMachineFunctionInfo.cpp
@@ -21,4 +21,4 @@
       FramePtrSpillOffset(0), GPRCS1Offset(0), GPRCS2Offset(0), DPRCSOffset(0),
       GPRCS1Size(0), GPRCS2Size(0), DPRCSSize(0),
       PICLabelUId(0), VarArgsFrameIndex(0), HasITBlocks(false),
-      IsSplitCSR(false) {}
+      ArgumentStackSize(0), IsSplitCSR(false) {}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20051.56509.patch
Type: text/x-patch
Size: 502 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160508/7f5601d7/attachment.bin>


More information about the llvm-commits mailing list