diff options
author | Jo Shields <directhex@apebox.org> | 2018-04-24 17:44:16 +0300 |
---|---|---|
committer | Imran Hameed <imhameed@microsoft.com> | 2021-06-03 00:02:30 +0300 |
commit | 44cb3ac79c820dd7a8a78e164bfee87140914b65 (patch) | |
tree | b8c0ce086f282c46414be701a973ef14f745e5cd | |
parent | 7493c99671fc16b1ec46952418aedcb83b8fc052 (diff) |
Use LLVM_BUILTIN_TRAP macro, not __builtin_trap(), fixes MSVC
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/MonoException.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/MonoException.cpp b/llvm/lib/CodeGen/AsmPrinter/MonoException.cpp index 42605c6e0913..353e59e0e582 100644 --- a/llvm/lib/CodeGen/AsmPrinter/MonoException.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/MonoException.cpp @@ -119,7 +119,7 @@ emitCFIInstruction(MCStreamer &Streamer, CFAOffset = Instr.getOffset(); if (CFAOffset < 0) { outs () << CFAOffset << "\n"; - __builtin_trap (); + LLVM_BUILTIN_TRAP; } assert(CFAOffset >= 0); |