Displaying 2 results from an estimated 2 matches for "mfinfo".
Did you mean:
finfo
2008 Jul 22
0
[LLVMdev] r53212 broke LLVM on openbsd-4.3/gcc-3.3.5, patch.
...CodeGen/MachineFunction.h
===================================================================
--- include/llvm/CodeGen/MachineFunction.h (revision 53390)
+++ include/llvm/CodeGen/MachineFunction.h (working copy)
@@ -136,7 +136,11 @@
///
template<typename Ty>
Ty *getInfo() {
- if (!MFInfo) MFInfo = new (Allocator.Allocate<Ty>()) Ty(*this);
+ if (!MFInfo) {
+ Ty *loc = static_cast<Ty*>(Allocator.Allocate(
+ sizeof(Ty),AlignOf<Ty>::Alignment));
+ MFInfo = new (loc) Ty(*this);
+ }
assert((void*)dynamic_cast<Ty*>(MFInfo) == (...
2008 Jul 10
2
[LLVMdev] r53212 broke LLVM on openbsd-4.3/gcc-3.3.5, patch.
Hi,
The custom allocator-related changes committed in rev. 53212 broke
LLVM build on openbsd-4.3 with gcc-3.3.5 (i386 and amd64). The
attached patch fixes this.
This looks like an issue with gcc-3.3.5, and I'm not sure if you guys
will be wanting to support this compiler. Just sharing the patch
hoping it helps someone.
Regards,
-Mahadevan.
-------------- next part --------------
A non-text