[LLVMdev] Linking Errors?

Brian R. Gaeke gaeke at uiuc.edu
Tue Dec 9 22:20:01 PST 2003


> Ok that works but why on earth would I get a runtime error of:
> 
> Type.cpp:132: const llvm::Type* llvm::Type::getForwardedTypeInternal()
> const: Assertion `ForwardType && "This type is not being forwarded to
> another type!"' failed.
> Aborted
> 
> For the line of code:
> 
> MyModule = new Module( std::string("IDontWork"));

I was getting these recently when we made the switch from -fshort-enums
to -fno-short-enums in the toplevel Makefile.  The solution is to
blow *everything* away with a "gmake clean" and rebuild -- basically,
-fshort-enums and -fno-short-enums code do not mix.

-- 
gaeke at uiuc.edu



More information about the llvm-dev mailing list