I'm getting tons of these warnings when I compile with clang. Is this intended? 
If so, could the person who introduced this warning fix LLVM's code?

In file included from 
/Users/void/llvm/llvm.src/utils/TableGen/AsmMatcherEmitter.cpp:100:
In file included from 
/Users/void/llvm/llvm.src/utils/TableGen/CodeGenTarget.h:20:
In file included from 
/Users/void/llvm/llvm.src/utils/TableGen/CodeGenRegisters.h:19:
/Users/void/llvm/llvm.src/include/llvm/ADT/DenseMap.h:76:14: warning: 
destination for this memset call is a pointer to a non-POD type 'BucketT' (aka 
'pair<const
      llvm::Record *, llvm::CodeGenInstruction *>') [-Wnon-pod-memset]
      memset(Buckets, 0x5a, sizeof(BucketT)*NumBuckets);
      ~~~~~~ ^
/Users/void/llvm/llvm.src/utils/TableGen/CodeGenTarget.h:63:7: note: in 
instantiation of member function 'llvm::DenseMap<const llvm::Record *,
      llvm::CodeGenInstruction *, llvm::DenseMapInfo<const llvm::Record *>, 
llvm::DenseMapInfo<llvm::CodeGenInstruction *> >::~DenseMap' requested here
class CodeGenTarget {
      ^
/Users/void/llvm/llvm.src/include/llvm/ADT/DenseMap.h:76:14: note: explicitly 
cast the pointer to silence this warning
      memset(Buckets, 0x5a, sizeof(BucketT)*NumBuckets);
             ^
             (void*)


-bw

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to