mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-06 01:39:11 +00:00
Do not read past the end of the contained type list
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8986 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9073613d0c
commit
ae19bf7c37
@ -57,8 +57,8 @@ static ExFunc lookupFunction(const Function *M) {
|
|||||||
// composite function name should be.
|
// composite function name should be.
|
||||||
std::string ExtName = "lle_";
|
std::string ExtName = "lle_";
|
||||||
const FunctionType *MT = M->getFunctionType();
|
const FunctionType *MT = M->getFunctionType();
|
||||||
for (unsigned i = 0; const Type *Ty = MT->getContainedType(i); ++i)
|
for (unsigned i = 0, e = MT->getNumContainedTypes(); i != e; ++i)
|
||||||
ExtName += getTypeID(Ty);
|
ExtName += getTypeID(MT->getContainedType(i));
|
||||||
ExtName += "_" + M->getName();
|
ExtName += "_" + M->getName();
|
||||||
|
|
||||||
//std::cout << "Tried: '" << ExtName << "'\n";
|
//std::cout << "Tried: '" << ExtName << "'\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user