sslab-gatech / unisan

UniSan: Proactive Kernel Memory Initialization to Eliminate Data Leakages
MIT License
42 stars 20 forks source link

class cast error when compile the project in LLVM-3.7.1 #4

Open willsheil opened 6 years ago

willsheil commented 6 years ago

Hi: /root/unisan-master/analysis/src/lib/SAStructs.cc:342:9: error: invalid operands to binary expression ('BasicBlock::iterator' (aka 'ilist_iterator') and 'llvm::Value *') if (I == UN->U) {

/root/unisan-master/analysis/src/lib/SAStructs.cc:358:14: error: invalid operands to binary expression ('BasicBlock::iterator' (aka 'ilist_iterator') and 'llvm::Value ') else if (I == (it)->U) {

2 errors generated.

daydayup40 commented 5 years ago

Have you solved this problem? I compile the project with LLVM-3.7.1 correctly. But I compile the project with LLVM-8 with this error. I didn't find the solution yet. Could you share your solution?