[LLVMdev] llvm 1.0, g++, SuSE 9, internal compiler error

Brian R. Gaeke gaeke at uiuc.edu
Thu Nov 13 12:36:02 PST 2003


> >  I would definitely like to put a workaround in the LLVM code, assuming it's not
> > too ugly.  Compatibility with a broad range of compilers is important,
> > even if they are buggy.  :)
> 
> I see. The following ugly workaround helps:
> 
> #ifdef NDEBUG
>   bool b = getOption(ArgName) == Opt ;
>   assert( b && "Arg not in map!");
> #endif

You might try something like 

  assert((getOption(ArgName) == Opt) && "Arg not in map!");

(note extra parens)

-Brian

-- 
gaeke at uiuc.edu



More information about the llvm-dev mailing list