Fix StaticAnalyzer complaints. NFC.
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Thu, 14 Apr 2016 23:58:26 +0000 (23:58 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Thu, 14 Apr 2016 23:58:26 +0000 (23:58 +0000)
commit908dacf91dfbd5ea333386749e746e1a5e133e69
tree3a12b4e6fef05c564adee7d70b685a6ae6220488
parent1a88adbb27a21e7728253c2f932b41009e314985
Fix StaticAnalyzer complaints. NFC.

Clang's StaticAnalyzer seems to (correctly) complain about code like:

    T *p = calloc(sizeof(U), N);

...Where T and U are different types.

This patch removes some instances of this pattern from compiler-rt.

Patch by Apelete Seketeli.
Differential Revision: http://reviews.llvm.org/D19085

llvm-svn: 266388
compiler-rt/lib/builtins/emutls.c