diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2019-08-15 10:56:05 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2019-08-15 10:56:05 +0000 |
commit | 37508d3dd94b0154861a90b1909d17b01400df99 (patch) | |
tree | b5677e16e6a689496417169d8b71b2047d4543fd /clang/lib | |
parent | d596dd81139955a62fb2e9ca2dace14ffb6a75de (diff) | |
download | bcm5719-llvm-37508d3dd94b0154861a90b1909d17b01400df99.tar.gz bcm5719-llvm-37508d3dd94b0154861a90b1909d17b01400df99.zip |
Replace llvm::integer_sequence and friends with the C++14 standard version
The implementation in libc++ takes O(1) compile time, ours was O(n).
llvm-svn: 368990
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/CodeGen/EHScopeStack.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/EHScopeStack.h b/clang/lib/CodeGen/EHScopeStack.h index 3b0db35d982..0ed67aabcd6 100644 --- a/clang/lib/CodeGen/EHScopeStack.h +++ b/clang/lib/CodeGen/EHScopeStack.h @@ -199,14 +199,14 @@ public: SavedTuple Saved; template <std::size_t... Is> - T restore(CodeGenFunction &CGF, llvm::index_sequence<Is...>) { + T restore(CodeGenFunction &CGF, std::index_sequence<Is...>) { // It's important that the restores are emitted in order. The braced init // list guarantees that. return T{DominatingValue<As>::restore(CGF, std::get<Is>(Saved))...}; } void Emit(CodeGenFunction &CGF, Flags flags) override { - restore(CGF, llvm::index_sequence_for<As...>()).Emit(CGF, flags); + restore(CGF, std::index_sequence_for<As...>()).Emit(CGF, flags); } public: |