[all-commits] [llvm/llvm-project] 130261: [MergeFunc] Fix crash caused by bitcasting ArrayTy...
Tobias Stadler via All-commits
all-commits at lists.llvm.org
Fri Apr 4 02:17:01 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1302610f03a1f10c2eea4c66445ccba4c52887b6
https://github.com/llvm/llvm-project/commit/1302610f03a1f10c2eea4c66445ccba4c52887b6
Author: Tobias Stadler <mail at stadler-tobias.de>
Date: 2025-04-04 (Fri, 04 Apr 2025)
Changed paths:
M llvm/include/llvm/IR/IRBuilder.h
M llvm/lib/CodeGen/GlobalMergeFunctions.cpp
M llvm/lib/IR/IRBuilder.cpp
M llvm/lib/Transforms/IPO/MergeFunctions.cpp
A llvm/test/Transforms/MergeFunc/crash-cast-arrays.ll
Log Message:
-----------
[MergeFunc] Fix crash caused by bitcasting ArrayType (#133259)
createCast in MergeFunctions did not consider ArrayTypes, which results
in the creation of a bitcast between ArrayTypes in the thunk function,
leading to an assertion failure in the provided test case.
The version of createCast in GlobalMergeFunctions does handle
ArrayTypes, so this common code has been factored out into the
IRBuilder.
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