diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-16 16:51:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-16 16:51:50 +0000 |
commit | 5e94a0d82b1f49be41c35a73106b219e3f588c8c (patch) | |
tree | c400cf527d17a75b02bb8f12758f4c483d390e9d /lib/AST/Expr.cpp | |
parent | a50089ec68a583d13718107c1b0c898f0903709e (diff) |
fix my previous commit.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79191 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Expr.cpp')
-rw-r--r-- | lib/AST/Expr.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |