Displaying 1 result from an estimated 1 matches for "somecontainer".
Did you mean:
some_container
2011 Jul 01
0
[LLVMdev] Bug in Inliner w/ lazy bitcode
...s a "bug" or just a "you shouldn't use Module/Inliner like this".
The problem is related to using templates (and thereby linkonce_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...