From 5e94a0d82b1f49be41c35a73106b219e3f588c8c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 16 Aug 2009 16:51:50 +0000 Subject: [PATCH] fix my previous commit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79191 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/Expr.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.50.1