mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-22 20:26:31 +00:00
For PR1336:
Functions without names deserve to be created too. This fixes: test/CodeGen/Generic/vector-constantexpr.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36105 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
722bdf6633
commit
7055dafa7f
@ -3034,8 +3034,13 @@ FunctionHeaderH
|
||||
Fn = new Function(FT, CurFun.Linkage, FunctionName, M);
|
||||
InsertValue(Fn, CurModule.Values);
|
||||
}
|
||||
} else {
|
||||
// There's no conflict, just define the function
|
||||
Fn = new Function(FT, CurFun.Linkage, FunctionName, M);
|
||||
InsertValue(Fn, CurModule.Values);
|
||||
}
|
||||
|
||||
|
||||
CurFun.FunctionStart(Fn);
|
||||
|
||||
if (CurFun.isDeclare) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user