Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions include/llvm/ADT/StringRef.h
Original file line number Diff line number Diff line change
Expand Up @@ -570,24 +570,4 @@ namespace llvm {
template <> struct isPodLike<StringRef> { static const bool value = true; };
}

// HLSL Change Starts
// StringRef provides an operator string; that trips up the std::pair noexcept specification,
// which (a) enables the moves constructor (because conversion is allowed), but (b)
// misclassifies the the construction as nothrow.
namespace std {
template<>
struct is_nothrow_constructible <std::string, llvm::StringRef>
: std::false_type {
};
template<>
struct is_nothrow_constructible <std::string, llvm::StringRef &>
: std::false_type {
};
template<>
struct is_nothrow_constructible <std::string, const llvm::StringRef &>
: std::false_type {
};
}
// HLSL Change Ends

#endif
Loading