fix compilation for Visual Studio
This commit is contained in:
11
expr.cpp
11
expr.cpp
@@ -3544,9 +3544,14 @@ FunctionCallExpr::FunctionCallExpr(Expr *f, ExprList *a, SourcePos p,
|
||||
: Expr(p), isLaunch(il) {
|
||||
func = f;
|
||||
args = a;
|
||||
launchCountExpr[0] = lce[0];
|
||||
launchCountExpr[1] = lce[1];
|
||||
launchCountExpr[2] = lce[2];
|
||||
if (lce != NULL)
|
||||
{
|
||||
launchCountExpr[0] = lce[0];
|
||||
launchCountExpr[1] = lce[1];
|
||||
launchCountExpr[2] = lce[2];
|
||||
}
|
||||
else
|
||||
launchCountExpr[0] = launchCountExpr[1] = launchCountExpr[2] = NULL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
2
expr.h
2
expr.h
@@ -247,7 +247,7 @@ class FunctionCallExpr : public Expr {
|
||||
public:
|
||||
FunctionCallExpr(Expr *func, ExprList *args, SourcePos p,
|
||||
bool isLaunch = false,
|
||||
Expr *launchCountExpr[3] = (Expr*[3]){NULL, NULL, NULL});
|
||||
Expr *launchCountExpr[3] = NULL);
|
||||
|
||||
llvm::Value *GetValue(FunctionEmitContext *ctx) const;
|
||||
llvm::Value *GetLValue(FunctionEmitContext *ctx) const;
|
||||
|
||||
Reference in New Issue
Block a user