summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-09-15 16:03:44 +0000
committerAnders Carlsson <andersca@mac.com>2009-09-15 16:03:44 +0000
commit01ccf998d59f6190ea1ec92565125cbeb4ba8b0f (patch)
treeb47d228f39b0e6e8791233a8927bb7514e7b28ab /clang
parent0ea0e1b4afbb865eb6697713c6320c9aa286471f (diff)
downloadbcm5719-llvm-01ccf998d59f6190ea1ec92565125cbeb4ba8b0f.tar.gz
bcm5719-llvm-01ccf998d59f6190ea1ec92565125cbeb4ba8b0f.zip
Use getTrueExpr/getFalseExpr as suggested by Doug.
llvm-svn: 81863
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Sema/SemaExpr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index 7835523062a..4b5173ffb26 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -5064,8 +5064,8 @@ QualType Sema::CheckAddressOfOperand(Expr *op, SourceLocation OpLoc) {
return QualType();
} else if (ConditionalOperator *CO = dyn_cast<ConditionalOperator>(op)) {
// FIXME: Can LHS ever be null here?
- if (!CheckAddressOfOperand(CO->getLHS(), OpLoc).isNull())
- return CheckAddressOfOperand(CO->getRHS(), OpLoc);
+ if (!CheckAddressOfOperand(CO->getTrueExpr(), OpLoc).isNull())
+ return CheckAddressOfOperand(CO->getFalseExpr(), OpLoc);
} else if (dcl) { // C99 6.5.3.2p1
// We have an lvalue with a decl. Make sure the decl is not declared
// with the register storage-class specifier.
OpenPOWER on IntegriCloud