diff --git a/include/dxc/Support/DxcOptToggles.h b/include/dxc/Support/DxcOptToggles.h index 04c4c68496..837ed317d5 100644 --- a/include/dxc/Support/DxcOptToggles.h +++ b/include/dxc/Support/DxcOptToggles.h @@ -25,9 +25,9 @@ namespace hlsl { namespace options { struct Toggle { - llvm::StringRef Name; + const char *Name; bool Default = false; - Toggle(llvm::StringRef Name, bool Default) : Name(Name), Default(Default) {} + Toggle(const char *Name, bool Default) : Name(Name), Default(Default) {} }; enum {