Fix for rev. 221024 and 221027

After rev.221027 (https://llvm.org/svn/llvm-project/llvm/trunk@221027 ) getAllMetadata takes new type of arguments.
After rev.221024 (https://llvm.org/svn/llvm-project/llvm/trunk@221024 ) getMetadata returns type Value*.