[llvm] r184428 - Remove MSan hack that is no longer needed.

Evgeniy Stepanov eugeni.stepanov at gmail.com
Thu Jun 20 07:19:10 PDT 2013


Author: eugenis
Date: Thu Jun 20 09:19:10 2013
New Revision: 184428

URL: http://llvm.org/viewvc/llvm-project?rev=184428&view=rev
Log:
Remove MSan hack that is no longer needed.

Modified:
    llvm/trunk/lib/Support/Unix/Process.inc

Modified: llvm/trunk/lib/Support/Unix/Process.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Process.inc?rev=184428&r1=184427&r2=184428&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Process.inc (original)
+++ llvm/trunk/lib/Support/Unix/Process.inc Thu Jun 20 09:19:10 2013
@@ -224,8 +224,6 @@ static unsigned getColumns(int FileID) {
 #if defined(HAVE_SYS_IOCTL_H) && defined(HAVE_TERMIOS_H)
   // Try to determine the width of the terminal.
   struct winsize ws;
-  // Zero-fill ws to avoid a false positive from MemorySanitizer.
-  memset(&ws, 0, sizeof(ws));
   if (ioctl(FileID, TIOCGWINSZ, &ws) == 0)
     Columns = ws.ws_col;
 #endif





More information about the llvm-commits mailing list