[all-commits] [llvm/llvm-project] 8b9861: [CIR] Fix calling defined functions (#137271)

Andy Kaylor via All-commits all-commits at lists.llvm.org
Fri Apr 25 12:09:15 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8b9861291000b6f593185752620008f7b6fd6149
      https://github.com/llvm/llvm-project/commit/8b9861291000b6f593185752620008f7b6fd6149
  Author: Andy Kaylor <akaylor at nvidia.com>
  Date:   2025-04-25 (Fri, 25 Apr 2025)

  Changed paths:
    M clang/include/clang/CIR/MissingFeatures.h
    M clang/lib/CIR/CodeGen/CIRGenModule.cpp
    M clang/test/CIR/CodeGen/call.cpp
    M clang/test/CIR/CodeGen/namespace.cpp

  Log Message:
  -----------
  [CIR] Fix calling defined functions (#137271)

Until now our function symbol lookup has been assuming that the function
did not exist and creating a definition for it. This caused us to create
a duplicate definition if we ever tried to call a function that was
already defined.

This change fixes that by adding handling for trying to look up existing
global definitions before creating a new one.



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