[all-commits] [llvm/llvm-project] 412295: [analyzer] Fix crashing __builtin_bit_cast (#139188)

Ziqing Luo via All-commits all-commits at lists.llvm.org
Tue May 13 10:24:24 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 41229581a456619c341daca8354b8c9ae1b150df
      https://github.com/llvm/llvm-project/commit/41229581a456619c341daca8354b8c9ae1b150df
  Author: Ziqing Luo <ziqing at udel.edu>
  Date:   2025-05-13 (Tue, 13 May 2025)

  Changed paths:
    M clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
    M clang/test/Analysis/builtin_bitcast.cpp
    M clang/test/Analysis/exercise-ps.c

  Log Message:
  -----------
  [analyzer] Fix crashing __builtin_bit_cast (#139188)

Previously, CSA did not handle __builtin_bit_cast correctly. It
evaluated the LvalueToRvalue conversion for the casting expression,
but did not actually convert the value of the expression to be of the
destination type.
This commit fixes the problem.

rdar://149987320



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