Skip to content

Commit 023dcb8

Browse files
author
joaosaffran
committed
maybe fix test?
1 parent 2809c2f commit 023dcb8

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

llvm/lib/Target/DirectX/DXILRootSignature.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ static bool parseRootSignatureElement(LLVMContext *Ctx,
5757

5858
RootSignatureElementKind ElementKind =
5959
StringSwitch<RootSignatureElementKind>(ElementText->getString())
60-
.Case("RootFlags", RootSignatureElementKind::RootFlags)
61-
.Default(RootSignatureElementKind::None);
60+
.Case("RootFlags", RootSignatureElementKind::RootFlags);
6261

6362
switch (ElementKind) {
6463

llvm/lib/Target/DirectX/DXILRootSignature.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
namespace llvm {
2323
namespace dxil {
2424

25-
enum class RootSignatureElementKind { None = 0, RootFlags = 1 };
25+
enum class RootSignatureElementKind { RootFlags = 1 };
2626

2727
struct ModuleRootSignature {
2828
uint32_t Flags = 0;

llvm/test/CodeGen/DirectX/ContainerData/RootSignature-MultipleEntryFunctions-Error.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
; RUN: not --crash llc %s --filetype=obj -o - 2>&1 | FileCheck %s
2-
; CHECK: error: More than one entry function defined
1+
; RUN: not --crash llc %s --filetype=obj -o -
2+
; expected-error@-1: More than one entry function defined
33

44
target triple = "dxil-unknown-shadermodel6.0-compute"
55

0 commit comments

Comments
 (0)