diff options
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; } |