Commit 2fab0b6a authored by Wei-Cheng Wu's avatar Wei-Cheng Wu
Browse files

Just commit

parent b2b67f53
......@@ -362,12 +362,10 @@ public:
bool isCompatibleType = false;
bool noAdditionOperator =false;
/*Special Case for unsigned char *, where if a and b are this type, we can do a-b but not a-b*/
// TODO: here here lhsType.
lhsType.dump();
if(lhsType.getAsString().compare("unsigned char *")==0){
noAdditionOperator=true;
}
/* Special Case for (unsigned char *), where if a and b are this type, we can do a-b but not a+b */
if (lhsType.getCanonicalType().getAsString().compare("unsigned char *")==0) {
noAdditionOperator=true;
}
// Both RHS and LHS Should be arithmetic types for / and * (My Assumption)
if (lhsType.getTypePtr()->isArithmeticType() &&
......
......@@ -220,9 +220,7 @@ public:
bool noAdditionOperator =false;
/*Special Case for unsigned char *, where if a and b are this type, we can do a-b but not a-b*/
// TODO: here here lhsType.
lhsType.dump();
if(lhsType.getAsString().compare("unsigned char *")==0){
if(lhsType.getCanonicalType().getAsString().compare("unsigned char *")==0){
noAdditionOperator=true;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment