From: Chris Lattner Date: Sun, 16 Aug 2009 16:51:50 +0000 (+0000) Subject: fix my previous commit. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e94a0d82b1f49be41c35a73106b219e3f588c8c;p=clang fix my previous commit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79191 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/Expr.cpp b/lib/AST/Expr.cpp index f000ff63d0..ec44584585 100644 --- a/lib/AST/Expr.cpp +++ b/lib/AST/Expr.cpp @@ -550,6 +550,9 @@ bool Expr::isUnusedResultAWarning(SourceLocation &Loc, SourceRange &R1, R1 = SourceRange(KVCRef->getLocation(), KVCRef->getLocation()); if (KVCRef->getBase()) R2 = KVCRef->getBase()->getSourceRange(); +#else + Loc = getExprLoc(); + R1 = getSourceRange(); #endif return true; }