]> granicus.if.org Git - clang/commitdiff
fix my previous commit.
authorChris Lattner <sabre@nondot.org>
Sun, 16 Aug 2009 16:51:50 +0000 (16:51 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 16 Aug 2009 16:51:50 +0000 (16:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79191 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/Expr.cpp

index f000ff63d0bc0cdf9d1a59c50a1df52ec755b7e8..ec44584585c2bd2469f33fca1ad87c9ceccc2de9 100644 (file)
@@ -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;
   }