1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/MC/Mips/set-sym-recursive.s
Simon Atanasyan 920b59ce0f [mips] Fix crash on recursive using of .set
Switch to the `MCParserUtils::parseAssignmentExpression` for parsing
assignment expressions in the `.set` directive reduces code and allows
to print an error message instead of crashing in case of incorrect
recursive using of the `.set`.

Fix for the bug https://bugs.llvm.org/show_bug.cgi?id=41053.

Differential Revision: http://reviews.llvm.org/D59452

llvm-svn: 356461
2019-03-19 15:15:35 +00:00

6 lines
145 B
ArmAsm

# RUN: not llvm-mc -triple mips-unknown-linux %s 2>&1 | FileCheck %s
.set A, A + 1
# CHECK: :[[@LINE-1]]:9: error: Recursive use of 'A'
.word A