catb0t / tart

Automatically exported from code.google.com/p/tart
0 stars 0 forks source link

Current version of tart can't build on llvm trunk #36

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
current trunk of llvm (ie: #151246) can't build tart beacause 
ConstantArray::get(...) no longer exists.
It was replaced by :
ConstantDataArray::getString

So here is a patch to fix this and correct a test bug in TypeConversion.cpp 
that looked like this:
>> ((options & Conversion::CoerceToBool) != 0 & dstExpr != NULL)

i suppose it was meant to be :

>> ((options & Conversion::CoerceToBool) != 0 && dstExpr != NULL)

so this patch corrects this also.

Original issue reported on code.google.com by ecy...@gmail.com on 23 Feb 2012 at 9:12

Attachments: