Explicitly #include <utility> in spirv_target_env.cpp (#5159)

spirv_target_env.cpp uses std::pair, which is defined in utility.
Right now, this compiles because utility is provided via transitive
includes in other C++ standard library headers provided by the
implementation. However, these transitive includes are not guaranteed to
exist, and won't exist in certain cases (e.g. compiling against LLVM's
libc++ with modules enabled.)
This commit is contained in:
Alan Zhao 2023-03-15 05:15:29 -07:00 committed by GitHub
parent 25f6c0cea5
commit 9743701ed5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,7 @@
#include <cassert>
#include <cstring>
#include <string>
#include <utility>
#include "source/spirv_constant.h"
#include "spirv-tools/libspirv.h"