From 38b2591469543c30e28e1d49740d42ad7cfba0ba Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Mon, 9 Feb 2015 19:13:51 +0000 Subject: DebugInfo: Refactor default arg handling into a common place (instead of handling in repeatedly for aggregate, complex, and scalar types) llvm-svn: 228591 --- clang/lib/CodeGen/CGExprAgg.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'clang/lib/CodeGen/CGExprAgg.cpp') diff --git a/clang/lib/CodeGen/CGExprAgg.cpp b/clang/lib/CodeGen/CGExprAgg.cpp index 7d05d48e85d..80b16dd5ba3 100644 --- a/clang/lib/CodeGen/CGExprAgg.cpp +++ b/clang/lib/CodeGen/CGExprAgg.cpp @@ -1387,12 +1387,7 @@ void CodeGenFunction::EmitAggExpr(const Expr *E, AggValueSlot Slot) { // Optimize the slot if possible. CheckAggExprForMemSetUse(Slot, E, *this); - bool hasDebugInfo = getDebugInfo(); - if (isa(E)) - disableDebugInfo(); AggExprEmitter(*this, Slot).Visit(const_cast(E)); - if (isa(E) && hasDebugInfo) - enableDebugInfo(); } LValue CodeGenFunction::EmitAggExprToLValue(const Expr *E) { -- cgit v1.2.3