r282464 - Remove default argument from lambda to appease old MSVC.

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 26 17:53:26 PDT 2016


Author: rsmith
Date: Mon Sep 26 19:53:24 2016
New Revision: 282464

URL: http://llvm.org/viewvc/llvm-project?rev=282464&view=rev
Log:
Remove default argument from lambda to appease old MSVC.

Modified:
    cfe/trunk/lib/CodeGen/CGExpr.cpp

Modified: cfe/trunk/lib/CodeGen/CGExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExpr.cpp?rev=282464&r1=282463&r2=282464&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExpr.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExpr.cpp Mon Sep 26 19:53:24 2016
@@ -2879,7 +2879,7 @@ LValue CodeGenFunction::EmitArraySubscri
   // in lexical order (this complexity is, sadly, required by C++17).
   llvm::Value *IdxPre =
       (E->getLHS() == E->getIdx()) ? EmitScalarExpr(E->getIdx()) : nullptr;
-  auto EmitIdxAfterBase = [&, IdxPre](bool Promote = true) -> llvm::Value * {
+  auto EmitIdxAfterBase = [&, IdxPre](bool Promote) -> llvm::Value * {
     auto *Idx = IdxPre;
     if (E->getLHS() != E->getIdx()) {
       assert(E->getRHS() == E->getIdx() && "index was neither LHS nor RHS");




More information about the cfe-commits mailing list