diff options
author | Eric Fiselier <eric@efcs.ca> | 2018-07-25 04:21:59 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2018-07-25 04:21:59 +0000 |
commit | 3b3edcb0b7bd37435d176034eea720fe2a692647 (patch) | |
tree | 2b7986fe9c97b7c420ae2b2ef983c8744a59f3e2 /libcxx | |
parent | c17628fb150a1a3d862446a77436874c172a2ebf (diff) | |
download | bcm5719-llvm-3b3edcb0b7bd37435d176034eea720fe2a692647.tar.gz bcm5719-llvm-3b3edcb0b7bd37435d176034eea720fe2a692647.zip |
Fix missing includes in format_string.hpp helper
llvm-svn: 337886
Diffstat (limited to 'libcxx')
-rw-r--r-- | libcxx/test/support/format_string.hpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libcxx/test/support/format_string.hpp b/libcxx/test/support/format_string.hpp index 17e467c8c36..44dc30f551d 100644 --- a/libcxx/test/support/format_string.hpp +++ b/libcxx/test/support/format_string.hpp @@ -5,23 +5,24 @@ #include <string> #include <memory> #include <array> +#include <cstdarg> namespace format_string_detail { inline std::string format_string_imp(const char* msg, ...) { // we might need a second shot at this, so pre-emptivly make a copy struct GuardVAList { - va_list& target; + va_list& xtarget; bool active; - GuardVAList(va_list& target) : target(target), active(true) {} + GuardVAList(va_list& val) : xtarget(val), active(true) {} void clear() { if (active) - va_end(target); + va_end(xtarget); active = false; } ~GuardVAList() { if (active) - va_end(target); + va_end(xtarget); } }; va_list args; |