mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-10 02:25:47 +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:
@@ -774,7 +774,8 @@ 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);
|
||||||
|
|
||||||
CurModule.NamedTypeSigns[Name] = Sign;
|
if (Name)
|
||||||
|
CurModule.NamedTypeSigns[Name] = Sign;
|
||||||
|
|
||||||
std::map<ValID, PATypeHolder>::iterator I =
|
std::map<ValID, PATypeHolder>::iterator I =
|
||||||
CurModule.LateResolveTypes.find(D);
|
CurModule.LateResolveTypes.find(D);
|
||||||
|
Reference in New Issue
Block a user