Displaying 4 results from an estimated 4 matches for "memberindex".
2013 Oct 22
4
[LLVMdev] ld: Assertion failed: (memberIndex != 0), function makeObjectFileForMember
Hi,
I'm encountering the following assertion when linking an Xcode project with Xcode 4.6.3 (4H1503). The project has dependencies on, and links against, an Objective-C static library Xcode project, and a C++ static library Xcode project. All are using using LLVM 4.2.
ld: Assertion failed: (memberIndex != 0), function makeObjectFileForMember, file /SourceCache/ld64/ld64-136/src/ld/parsers/archive_file.cpp, line 354.
0 0x10fa41098 __assert_rtn + 144
1 0x10fa678af archive::File<x86_64>::makeObjectFileForMember(archive::File<x86_64>::Entry const*) const + 1149
2 0x10fa670fd archiv...
2013 Oct 23
0
[LLVMdev] ld: Assertion failed: (memberIndex != 0), function makeObjectFileForMember
...39;m encountering the following assertion when linking an Xcode project with Xcode 4.6.3 (4H1503). The project has dependencies on, and links against, an Objective-C static library Xcode project, and a C++ static library Xcode project. All are using using LLVM 4.2.
>
> ld: Assertion failed: (memberIndex != 0), function makeObjectFileForMember, file /SourceCache/ld64/ld64-136/src/ld/parsers/archive_file.cpp, line 354.
>
> 0 0x10fa41098 __assert_rtn + 144
> 1 0x10fa678af archive::File<x86_64>::makeObjectFileForMember(archive::File<x86_64>::Entry const*) const + 1149
> 2...
2013 Oct 23
0
[LLVMdev] ld: Assertion failed: (memberIndex != 0), function makeObjectFileForMember
Hi David,
> ld: Assertion failed: (memberIndex != 0), function makeObjectFileForMember, file /SourceCache/ld64/ld64-136/src/ld/parsers/archive_file.cpp, line 354.
This looks like a bug in the Apple linker, which isn't part of LLVM.
The best on-topic place to ask would probably be Apple's developer
forum (https://devforums.apple.com), b...
2009 Jan 09
2
[LLVMdev] RFC: Store alignment should be LValue alignment, not source alignment
...ert((TREE_CODE(DECL_CONTEXT(FieldDecl)) == RECORD_TYPE ||
TREE_CODE(DECL_CONTEXT(FieldDecl)) == UNION_TYPE ||
TREE_CODE(DECL_CONTEXT(FieldDecl)) == QUAL_UNION_TYPE));
@@ -6064,7 +6100,9 @@ LValue TreeToLLVM::EmitLV_COMPONENT_REF(
// the offset from BitStart.
if (MemberIndex) {
const StructLayout *SL =
TD.getStructLayout(cast<StructType>(StructTy));
- BitStart -= SL->getElementOffset(MemberIndex) * 8;
+ unsigned Offset = SL->getElementOffset(MemberIndex);
+ BitStart -= Offset * 8;
+ LVAlign = MinAlign(LVAlign, Offset);
}...