Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo Shields <directhex@apebox.org>2018-04-24 17:44:16 +0300
committerImran Hameed <imhameed@microsoft.com>2021-06-03 00:02:30 +0300
commit44cb3ac79c820dd7a8a78e164bfee87140914b65 (patch)
treeb8c0ce086f282c46414be701a973ef14f745e5cd
parent7493c99671fc16b1ec46952418aedcb83b8fc052 (diff)
Use LLVM_BUILTIN_TRAP macro, not __builtin_trap(), fixes MSVC
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/MonoException.cpp2
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);