hubert.reinterpretcast added a comment.

Reverting this patch makes va_arg with the default 128-bit (double-double) long 
double work again:

  #include <stdarg.h>
  void abort(void);
  
  void foo(int x, ...) {
    va_list ap;
    va_start(ap, x);
    long double ans = va_arg(ap, long double);
    if (ans != 42.L) abort();
  }
  
  int main(void) {
    foo(0, 42.L);
  }

This patch caused the above to abort.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D91596/new/

https://reviews.llvm.org/D91596

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to