[all-commits] [llvm/llvm-project] 8ab50d: Include <cstdlib> in Toy Lexer examples. (#110449)

Alexey Samsonov via All-commits all-commits at lists.llvm.org
Mon Sep 30 11:20:55 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8ab50da589fd2692052dcb85edf06d1d2d8da42c
      https://github.com/llvm/llvm-project/commit/8ab50da589fd2692052dcb85edf06d1d2d8da42c
  Author: Alexey Samsonov <vonosmas at gmail.com>
  Date:   2024-09-30 (Mon, 30 Sep 2024)

  Changed paths:
    M mlir/examples/toy/Ch1/include/toy/Lexer.h
    M mlir/examples/toy/Ch2/include/toy/Lexer.h
    M mlir/examples/toy/Ch3/include/toy/Lexer.h
    M mlir/examples/toy/Ch4/include/toy/Lexer.h
    M mlir/examples/toy/Ch5/include/toy/Lexer.h
    M mlir/examples/toy/Ch6/include/toy/Lexer.h
    M mlir/examples/toy/Ch7/include/toy/Lexer.h

  Log Message:
  -----------
  Include <cstdlib> in Toy Lexer examples. (#110449)

These files all use `strtod` - make sure to include a proper header for
this function. Otherwise, building MLIR fails on some systems after the
recent commit 1b5f6916199ce09244cdb52c6911f2028e6ca95a which removed
inclusion of `<cmath>` and thus broke transitive inclusion of
`<stdlib.h>` in these headers.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list