mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 10:53:14 +01:00
Set precedence for TOKgep as well, now that we have the assert back in expToCBuffer.
This commit is contained in:
@@ -1925,6 +1925,7 @@ struct LineInitExp : DefaultInitExp
|
||||
|
||||
// this stuff is strictly LDC
|
||||
|
||||
// Special expression to represent a LLVM GetElementPtr instruction.
|
||||
struct GEPExp : UnaExp
|
||||
{
|
||||
unsigned index;
|
||||
|
||||
@@ -5625,6 +5625,11 @@ void initPrecedence()
|
||||
|
||||
precedence[TOKcomma] = PREC_expr;
|
||||
precedence[TOKdeclaration] = PREC_expr;
|
||||
|
||||
#if IN_LLVM
|
||||
// Need to set precedence for TOKgep as well, as expToCBuffer expects it.
|
||||
precedence[TOKgep] = PREC_primary;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user