Skip to content

Commit e257a37

Browse files
committed
address pr comments
1 parent 562084c commit e257a37

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

llvm/lib/Target/DirectX/DXILOpLowering.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -757,10 +757,9 @@ class OpLowerer {
757757
continue;
758758
default: {
759759
std::string Msg =
760-
llvm::formatv("Unsupported intrinsic {0} for DXIL lowering",
761-
F.getName())
760+
formatv("Unsupported intrinsic {0} for DXIL lowering", F.getName())
762761
.str();
763-
DiagnosticInfoUnsupported Diag(F, Msg);
762+
DiagnosticInfoGeneric Diag(Msg);
764763
M.getContext().diagnose(Diag);
765764
HasErrors |= true;
766765
break;

llvm/test/CodeGen/DirectX/unsupported_intrinsic.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; RUN: not opt -S -dxil-op-lower -mtriple=dxil-pc-shadermodel6.3-library %s 2>&1 | FileCheck %s
22

3-
; CHECK: Unsupported intrinsic llvm.vector.reduce.and.v4i32 for DXIL lowering
3+
; CHECK: error: Unsupported intrinsic llvm.vector.reduce.and.v4i32 for DXIL lowering
44
define i32 @fn_and(<4 x i32> %0) local_unnamed_addr #0 {
55
%2 = tail call i32 @llvm.vector.reduce.and.v4i32(<4 x i32> %0)
66
ret i32 %2

0 commit comments

Comments
 (0)