Displaying 1 result from an estimated 1 matches for "emptycontain".
Did you mean:
emptycontainer
2011 Jul 01
0
[LLVMdev] Bug in Inliner w/ lazy bitcode
...inkonce_odr) with lazy deserialization. I've reduced it down to a simple test (also attached as bitcode_input.cc):
template<typename T>
class SomeContainer {
public:
T* getPtr() { return data; }
T* data;
};
extern "C"
float* RunStuff(void) {
SomeContainer<float> emptyContainer;
return emptyContainer.getPtr();
}
This code is compiled via clang into llvm bitcode (clang++ -emit-llvm -c bitcode_input.cc -o test.bc), and then loaded at runtime via getLazyBitcodeModule (see load_bitcode.cc). After "loading" the bitcode, I emit a new function that just calls Run...