[all-commits] [llvm/llvm-project] ce6303: [lli] Fix crash on empty entry-function
Cullen Rhodes via All-commits
all-commits at lists.llvm.org
Mon Jul 31 02:36:14 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ce6303f0e6358b9f3121bafab6b20e52ab9a8408
https://github.com/llvm/llvm-project/commit/ce6303f0e6358b9f3121bafab6b20e52ab9a8408
Author: Cullen Rhodes <cullen.rhodes at arm.com>
Date: 2023-07-31 (Mon, 31 Jul 2023)
Changed paths:
A llvm/test/ExecutionEngine/Orc/empty-entry-function.ll
M llvm/tools/lli/lli.cpp
Log Message:
-----------
[lli] Fix crash on empty entry-function
Empty entry-function triggers the following assertion:
llvm/lib/IR/Mangler.cpp:38: void getNameWithPrefixImpl(llvm::raw_ostream
&, const llvm::Twine &, (anonymous namespace)::ManglerPrefixTy, const
llvm::DataLayout &, char):
Assertion `!Name.empty() && "getNameWithPrefix requires non-empty name"' failed.
Throw an error if entry-function is empty.
Reviewed By: lhames
Differential Revision: https://reviews.llvm.org/D156516
More information about the All-commits
mailing list