Skip to content

Commit 299a099

Browse files
directhexJo Shields
authored andcommitted
Use LLVM_BUILTIN_TRAP macro, not __builtin_trap(), fixes MSVC
1 parent b3c29f7 commit 299a099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/AsmPrinter/MonoException.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ emitCFIInstruction(MCStreamer &Streamer,
119119
CFAOffset = Instr.getOffset();
120120
if (CFAOffset < 0) {
121121
outs () << CFAOffset << "\n";
122-
__builtin_trap ();
122+
LLVM_BUILTIN_TRAP;
123123
}
124124
assert(CFAOffset >= 0);
125125

0 commit comments

Comments
 (0)