[LLVMdev] Warning in LLVM

Duncan Sands baldrick at free.fr
Tue Mar 15 05:39:05 PDT 2011


Hi Renato,

> When compiling LLVM on my Intel(R) Core(TM)2 Duo CPU P7450 running
> Ubuntu (gcc 4.4.5), I get this warning:
>
> /home/rengolin/workspace/llvm/rw/build/Release+Asserts/lib/libLLVMARMAsmParser.a(ARMAsmParser.o):
> In function `(anonymous
> namespace)::ARMAsmParser::ParseRegisterList(llvm::SmallVectorImpl<llvm::MCParsedAsmOperand*>&)':
> ARMAsmParser.cpp:(.text+0x4a05): warning: memset used with constant
> zero length parameter; this could be due to transposed parameters
>
> Couldn't see anything special at 0x4a05, even because there was no
> such address (it's not even aligned?). Also, nothing got my attention
> on the source code, any ideas?

a bunch of warnings of this kind were fixed recently by tweaking DenseMap.
Are you at top-of-tree?

Ciao, Duncan.



More information about the llvm-dev mailing list