File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
clang/test/CodeGenDirectX Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1- // RUN: %if clang-dxc %{not %clang_dxc -T lib_6_3 %s 2>&1 | FileCheck %s %}
1+ // REQUIRES: directx-registered-target
2+ // RUN: not %clang_dxc -T lib_6_3 %s 2>&1 | FileCheck %s
23
34// CHECK: error: Unsupported intrinsic llvm.vector.reduce.and.v4i32 for DXIL lowering
45
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ class DiagnosticInfo {
139139using DiagnosticHandlerFunction = std::function<void (const DiagnosticInfo &)>;
140140
141141class DiagnosticInfoGeneric : public DiagnosticInfo {
142- const Twine MsgStr;
142+ const Twine & MsgStr;
143143 const Instruction *Inst = nullptr ;
144144
145145public:
Original file line number Diff line number Diff line change @@ -756,9 +756,8 @@ class OpLowerer {
756756 case Intrinsic::not_intrinsic:
757757 continue ;
758758 default : {
759- std::string Msg =
760- formatv (" Unsupported intrinsic {0} for DXIL lowering" , F.getName ())
761- .str ();
759+ SmallString<128 > Msg =
760+ formatv (" Unsupported intrinsic {0} for DXIL lowering" , F.getName ());
762761 M.getContext ().emitError (Msg);
763762 HasErrors |= true ;
764763 break ;
You can’t perform that action at this time.
0 commit comments