Displaying 1 result from an estimated 1 matches for "bitcode_input".
2011 Jul 01
0
[LLVMdev] Bug in Inliner w/ lazy bitcode
...itcode deserialization). I can't decide if this is 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++...