Skip to content

Commit

Permalink
Let CComBSTR do it
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffnn committed Sep 7, 2023
1 parent bae2325 commit 138bd60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/DxilDia/DxcPixTypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
#include "DxcPixTypes.h"
#include "DxilDiaSession.h"

static CA2W GetTypeNameOrDefault(llvm::DIType *diType) {
static const char * GetTypeNameOrDefault(llvm::DIType *diType) {
auto stringRef = diType->getName();
if (stringRef.empty())
return CA2W("<unnamed>");
return CA2W(stringRef.data());
return "<unnamed>";
return stringRef.data();
}

HRESULT dxil_debug_info::CreateDxcPixType(
Expand Down

0 comments on commit 138bd60

Please sign in to comment.