[cfe-commits] r39514 - /cfe/cfe/trunk/Sema/SemaExpr.cpp
Steve Naroff
snaroff at apple.com
Wed Jul 11 09:45:11 PDT 2007
Author: snaroff
Date: Wed Jul 11 11:45:11 2007
New Revision: 39514
URL: http://llvm.org/viewvc/llvm-project?rev=39514&view=rev
Log:
Bug #:
Submitted by:
Reviewed by:
Add range support to Sema::CheckConditionalOperands().
Modified:
cfe/cfe/trunk/Sema/SemaExpr.cpp
Modified: cfe/cfe/trunk/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Sema/SemaExpr.cpp?rev=39514&r1=39513&r2=39514&view=diff
==============================================================================
--- cfe/cfe/trunk/Sema/SemaExpr.cpp (original)
+++ cfe/cfe/trunk/Sema/SemaExpr.cpp Wed Jul 11 11:45:11 2007
@@ -492,7 +492,8 @@
return lhs;
else {
Diag(questionLoc, diag::err_typecheck_cond_incompatible_operands,
- lhs.getAsString(), rhs.getAsString());
+ lhs.getAsString(), rhs.getAsString(),
+ LHS->getSourceRange(), RHS->getSourceRange());
return QualType();
}
}
@@ -523,7 +524,8 @@
if (!Type::typesAreCompatible(lhptee.getUnqualifiedType(),
rhptee.getUnqualifiedType())) {
Diag(questionLoc, diag::ext_typecheck_cond_incompatible_pointers,
- lhs.getAsString(), rhs.getAsString());
+ lhs.getAsString(), rhs.getAsString(),
+ LHS->getSourceRange(), RHS->getSourceRange());
return lhs; // FIXME: this is an _ext - is this return o.k?
}
}
@@ -531,7 +533,8 @@
return lhs;
Diag(questionLoc, diag::err_typecheck_cond_incompatible_operands,
- lhs.getAsString(), rhs.getAsString());
+ lhs.getAsString(), rhs.getAsString(),
+ LHS->getSourceRange(), RHS->getSourceRange());
return QualType();
}
More information about the cfe-commits
mailing list