[cfe-dev] Warning in CodegenTypes.cpp

Chris Lattner clattner at apple.com
Wed Dec 5 09:22:41 PST 2007


On Dec 5, 2007, at 9:15 AM, HyperQuantum wrote:

> I compiled clang from SVN (r44614) and get the following warning  
> (GCC 4.2.2):
>
> CodeGenTypes.cpp: In member function 'const llvm::Type*
> clang::CodeGen::CodeGenTypes::ConvertNewType(clang::QualType)':
> CodeGenTypes.cpp:316: warning: comparison with string literal results
> in unspecified behaviour
>
> It seems that there is a comparison of two const char pointers. Is
> that intentional?

Definitely a bug, fixed, thanks!
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of- 
Mon-20071203/003187.html

-Chris



More information about the cfe-dev mailing list