Skip to content

Commit 816f383

Browse files
committed
Fix warning when compiling rust wrapper C++
This was output: ``` warning: [email protected]: rustc_llvm_wrapper/RustWrapper.cpp:43:45: warning: 'static_assert' without a message only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions] warning: [email protected]: 43 static_assert(dwarf::DW_OP_LLVM_fragment == 0x1000); ```
1 parent 65a20a9 commit 816f383

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/rustc_codegen_nvvm/rustc_llvm_wrapper/RustWrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ using namespace llvm::object;
4040

4141
// This opcode is an LLVM detail that could hypothetically change (?), so
4242
// verify that the hard-coded value in `dwarf_const.rs` still agrees with LLVM.
43-
static_assert(dwarf::DW_OP_LLVM_fragment == 0x1000);
43+
static_assert(dwarf::DW_OP_LLVM_fragment == 0x1000, "DW_OP_LLVM_fragment value mismatch");
4444

4545
// LLVMAtomicOrdering is already an enum - don't create another
4646
// one.

0 commit comments

Comments
 (0)