[all-commits] [llvm/llvm-project] 7dd4d2: [flang] Fix const cast issue in FreeMemory functio...

Yi Wu via All-commits all-commits at lists.llvm.org
Fri Jan 12 17:22:52 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7dd4d28e4196fad83ed78ea342d65e7eaec4a6f1
      https://github.com/llvm/llvm-project/commit/7dd4d28e4196fad83ed78ea342d65e7eaec4a6f1
  Author: Yi Wu <43659785+yi-wu-arm at users.noreply.github.com>
  Date:   2024-01-13 (Sat, 13 Jan 2024)

  Changed paths:
    M flang/docs/Intrinsics.md
    M flang/runtime/execute.cpp
    M flang/runtime/tools.cpp
    M flang/runtime/tools.h

  Log Message:
  -----------
  [flang] Fix const cast issue in FreeMemory function call in execute_command_line (#77906)

The FreeMemory function only accepts a void pointer, but it was being
called with a const char pointer, resulting in a type-casting issue.
To address this, the const was removed, use char * instead.




More information about the All-commits mailing list