Revision cdc4ab5fdc61688193ca0526d08cdfe0e8bbdc11 authored by John McCall on 21 January 2016, 01:09:27 UTC, committed by John McCall on 21 January 2016, 02:37:45 UTC
If we ever add the ability for default arguments to refer to
enclosing variables, we should promote DefaultArgumentInitializer
to be an always-present entity, give it an independent capture
list, and make SILDeclRef refer to it directly.  In fact, we may
want to do that anyway.  Until then, it's a weird special case
in terms of not really being a reference to the function returned
by getAnyFunctionRef().

rdar://24242783
1 parent 9127dfd
Raw File
test.cpp
#include "swift/Basic/ClusteredBitVector.h"
using namespace swift;
int main() {
  ClusteredBitVector cbvs[16];
  cbvs[7].appendSetBits(65);
  cbvs[3].appendClearBits(118);
  cbvs[7] = std::move(cbvs[3]);
  assert(cbvs[7][64] == false);
}
back to top