
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
5 lines
159 B
LLVM
5 lines
159 B
LLVM
; RUN: not lli --entry-function= %s 2>&1 | FileCheck %s
|
|
;
|
|
; Test empty --entry-function yields an error.
|
|
; CHECK: error: --entry-function name cannot be empty
|