Closed Plaristote closed 6 years ago
Hi, thanks for reporting this.
I am trying to reproduce your issue, but I can't. You are right that the method at line 104 is wrong, but It gives no error to me, because the class is a template, and the method itself is never used. Could you try to comment it out and see if you have any errors, and in that case report here where they are? Thanks
Indeed, commenting out the line doesn't break the compilation. It completed without reporting any errors.
Ok thanks. I fixed the method with https://github.com/leaningtech/cheerp-llvm/commit/e23baecf17193a800365f975f754008c87467b9a
Using archlinux with clang 6.0.0, cheerp-llvm fails to compile... but don't panic, it's an easy issue to fix !
It just appears like std::unique_ptr can't always be implicitly converted to bool. In the file
include/llvm/IR/ValueMap.h
, line 104, such a thing happen, and my compiler didn't like it.Perhaps return
MDMap.get()
instead of directly returningMDMap
.