mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-04 12:15:46 +00:00
For PR1336:
Functions without names deserve to be created too. This fixes: test/CodeGen/Generic/vector-constantexpr.ll llvm-svn: 36105
This commit is contained in:
parent
caaf8a1597
commit
78dffdc5d1
@ -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…
Reference in New Issue
Block a user