adapting clamav to LLVM 3.6

[Please keep in CC.]


I nearly finished adapting clamav to LLVM 3.6, just one problem remains:
The Sparse Conditional Constant Propagation optimization doesn't work anymore.

I have created a small example program demonstrating the problem (attached).

It works fine with LLVM 3.5:
$ make
$ ./test
LLVM module:

test.cpp (2.89 KB)

Makefile (470 Bytes)