From 3b3edcb0b7bd37435d176034eea720fe2a692647 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Wed, 25 Jul 2018 04:21:59 +0000 Subject: Fix missing includes in format_string.hpp helper llvm-svn: 337886 --- libcxx/test/support/format_string.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'libcxx') 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 #include #include +#include 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; -- cgit v1.2.1