[cfe-commits] r39960 - /cfe/trunk/Sema/SemaExpr.cpp
Bill Wendling
isanbard at gmail.com
Mon Jul 16 22:09:22 PDT 2007
Author: void
Date: Tue Jul 17 00:09:22 2007
New Revision: 39960
URL: http://llvm.org/viewvc/llvm-project?rev=39960&view=rev
Log:
Use the correct method for getting the ReferenceType from a QualType.
Modified:
cfe/trunk/Sema/SemaExpr.cpp
Modified: cfe/trunk/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Sema/SemaExpr.cpp?rev=39960&r1=39959&r2=39960&view=diff
==============================================================================
--- cfe/trunk/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/Sema/SemaExpr.cpp Tue Jul 17 00:09:22 2007
@@ -597,7 +597,7 @@
QualType t = e->getType();
assert(!t.isNull() && "DefaultFunctionArrayConversion - missing type");
- if (const ReferenceType *ref = dyn_cast<ReferenceType>(t)) {
+ if (const ReferenceType *ref = t->isReferenceType()) {
promoteExprToType(e, ref->getReferenceeType()); // C++ [expr]
t = e->getType();
}
@@ -616,7 +616,7 @@
QualType t = expr->getType();
assert(!t.isNull() && "UsualUnaryConversions - missing type");
- if (const ReferenceType *ref = dyn_cast<ReferenceType>(t)) {
+ if (const ReferenceType *ref = t->isReferenceType()) {
promoteExprToType(expr, ref->getReferenceeType()); // C++ [expr]
t = expr->getType();
}
More information about the cfe-commits
mailing list