projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
689bb78
)
Remove default argument from lambda to appease old MSVC.
author
Richard Smith
<richard-llvm@metafoo.co.uk>
Tue, 27 Sep 2016 00:53:24 +0000
(
00:53
+0000)
committer
Richard Smith
<richard-llvm@metafoo.co.uk>
Tue, 27 Sep 2016 00:53:24 +0000
(
00:53
+0000)
llvm-svn: 282464
clang/lib/CodeGen/CGExpr.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/CodeGen/CGExpr.cpp
b/clang/lib/CodeGen/CGExpr.cpp
index c6011cbc924a1c9e4d7a03800542b06030145a89..bca711fbc8caabf187d9e62e1a2a80b5993ac5a9 100644
(file)
--- a/
clang/lib/CodeGen/CGExpr.cpp
+++ b/
clang/lib/CodeGen/CGExpr.cpp
@@
-2879,7
+2879,7
@@
LValue CodeGenFunction::EmitArraySubscriptExpr(const ArraySubscriptExpr *E,
// 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");