[PATCH] D46285: [InstCombine] snprintf optimizations

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 10 12:43:06 PDT 2018


xbolva00 added a comment.

In https://reviews.llvm.org/D46285#1094917, @mstorsjo wrote:

> This caused lots of assertion errors in building code with mingw-w64 headers (where snprintf can be a static inline function), see https://bugs.llvm.org/show_bug.cgi?id=37408. I would like to revert this change to unbreak things until this can be fixed.


C standard says:
K.3.5.3.5 The snprintf_s function
Synopsis
#define _ _STDC_WANT_LIB_EXT1_ _ 1
#include <stdio.h>
int snprintf_s(char * restrict s, rsize_t n, const char * restrict format, ...);


Repository:
  rL LLVM

https://reviews.llvm.org/D46285





More information about the llvm-commits mailing list