mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Fix PR4975. Avoid referencing empty vector.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99840 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -6051,8 +6051,10 @@ void SelectionDAGISel::LowerArguments(BasicBlock *LLVMBB) {
|
||||
}
|
||||
|
||||
if (!I->use_empty()) {
|
||||
SDValue Res = DAG.getMergeValues(&ArgValues[0], NumValues,
|
||||
SDB->getCurDebugLoc());
|
||||
SDValue Res;
|
||||
if (!ArgValues.empty())
|
||||
Res = DAG.getMergeValues(&ArgValues[0], NumValues,
|
||||
SDB->getCurDebugLoc());
|
||||
SDB->setValue(I, Res);
|
||||
|
||||
// If this argument is live outside of the entry block, insert a copy from
|
||||
|
Reference in New Issue
Block a user