mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-04 23:32:00 +00:00
Fix a crash-by-unknown-exception caused by attempting to use a null pointer
as the key for a map insertion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35896 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
03703f0817
commit
8486744214
@ -774,6 +774,7 @@ static void ResolveTypeTo(char *Name, const Type *ToTy, const Signedness& Sign){
|
|||||||
D = ValID::create((int)CurModule.Types.size());
|
D = ValID::create((int)CurModule.Types.size());
|
||||||
D.S.copy(Sign);
|
D.S.copy(Sign);
|
||||||
|
|
||||||
|
if (Name)
|
||||||
CurModule.NamedTypeSigns[Name] = Sign;
|
CurModule.NamedTypeSigns[Name] = Sign;
|
||||||
|
|
||||||
std::map<ValID, PATypeHolder>::iterator I =
|
std::map<ValID, PATypeHolder>::iterator I =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user