Skip to content

Commit 8f94438

Browse files
committed
[FnSpecialization] Don't specialize chained functions that take variable arguments
1 parent 706fb4a commit 8f94438

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/IPO/FunctionSpecialization.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,7 @@ bool FunctionSpecializer::findSpecializations(
11461146
Function *NewF = CU.second.second;
11471147

11481148
// Recurse only if constants found for the function
1149-
if (!NewF)
1149+
if (!NewF || NewF->isVarArg())
11501150
continue;
11511151

11521152
// Don't allow any recursion in chains

0 commit comments

Comments
 (0)