https://bugs.llvm.org/show_bug.cgi?id=42092
Bug ID: 42092
Summary: [CGCXX] Destructor crash when program memory space has
larger pointers than p0
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Was crashing due invalid cast on simple c++ code where program memory has 32
bit pointers and default 16 bit.
Constructors in CodeGenModule.cpp are initialised as such:
llvm::Type *CtorPFTy = llvm::PointerType::get(CtorFTy,
TheModule.getDataLayout().getProgramAddressSpace());
But destructors in CGCXX as:
llvm::PointerType *AliasType = AliasValueType->getPointerTo();
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs