remove trailing whitespace

This commit is contained in:
2017-05-08 17:40:15 -04:00
parent 05c9f63527
commit 8a1aeed55c

View File

@@ -3204,7 +3204,7 @@ static llvm::Value *
lEmitVaryingSelect(FunctionEmitContext *ctx, llvm::Value *test, lEmitVaryingSelect(FunctionEmitContext *ctx, llvm::Value *test,
llvm::Value *expr1, llvm::Value *expr2, llvm::Value *expr1, llvm::Value *expr2,
const Type *type) { const Type *type) {
llvm::Value *resultPtr = ctx->AllocaInst(expr1->getType(), "selectexpr_tmp"); llvm::Value *resultPtr = ctx->AllocaInst(expr1->getType(), "selectexpr_tmp");
// Don't need to worry about masking here // Don't need to worry about masking here
ctx->StoreInst(expr2, resultPtr); ctx->StoreInst(expr2, resultPtr);
@@ -3704,7 +3704,7 @@ FunctionCallExpr::GetValue(FunctionEmitContext *ctx) const {
ctx->SetDebugPos(pos); ctx->SetDebugPos(pos);
if (ft->isTask) { if (ft->isTask) {
AssertPos(pos, launchCountExpr[0] != NULL); AssertPos(pos, launchCountExpr[0] != NULL);
llvm::Value *launchCount[3] = llvm::Value *launchCount[3] =
{ launchCountExpr[0]->GetValue(ctx), { launchCountExpr[0]->GetValue(ctx),
launchCountExpr[1]->GetValue(ctx), launchCountExpr[1]->GetValue(ctx),
launchCountExpr[2]->GetValue(ctx) }; launchCountExpr[2]->GetValue(ctx) };
@@ -3773,7 +3773,7 @@ FunctionCallExpr::GetType() const {
const Type * const Type *
FunctionCallExpr::GetLValueType() const { FunctionCallExpr::GetLValueType() const {
const FunctionType *ftype = lGetFunctionType(func); const FunctionType *ftype = lGetFunctionType(func);
if (ftype && (ftype->GetReturnType()->IsPointerType() if (ftype && (ftype->GetReturnType()->IsPointerType()
|| ftype->GetReturnType()->IsReferenceType())) { || ftype->GetReturnType()->IsReferenceType())) {
return ftype->GetReturnType(); return ftype->GetReturnType();
} }
@@ -4314,7 +4314,7 @@ IndexExpr::GetValue(FunctionEmitContext *ctx) const {
} }
else { else {
Symbol *baseSym = GetBaseSymbol(); Symbol *baseSym = GetBaseSymbol();
if (llvm::dyn_cast<FunctionCallExpr>(baseExpr) == NULL && if (llvm::dyn_cast<FunctionCallExpr>(baseExpr) == NULL &&
llvm::dyn_cast<BinaryExpr>(baseExpr) == NULL) { llvm::dyn_cast<BinaryExpr>(baseExpr) == NULL) {
// Don't check if we're doing a function call or pointer arith // Don't check if we're doing a function call or pointer arith
AssertPos(pos, baseSym != NULL); AssertPos(pos, baseSym != NULL);
@@ -5168,7 +5168,7 @@ MemberExpr::create(Expr *e, const char *id, SourcePos p, SourcePos idpos,
} }
if (CastType<StructType>(exprType) != NULL) { if (CastType<StructType>(exprType) != NULL) {
const StructType *st = CastType<StructType>(exprType); const StructType *st = CastType<StructType>(exprType);
if (st->IsDefined()) { if (st->IsDefined()) {
return new StructMemberExpr(e, id, p, idpos, derefLValue); return new StructMemberExpr(e, id, p, idpos, derefLValue);
} }
else { else {
@@ -7224,7 +7224,7 @@ TypeCastExpr::TypeCheck() {
// Issues #721 // Issues #721
return this; return this;
} }
const AtomicType *fromAtomic = CastType<AtomicType>(fromType); const AtomicType *fromAtomic = CastType<AtomicType>(fromType);
const AtomicType *toAtomic = CastType<AtomicType>(toType); const AtomicType *toAtomic = CastType<AtomicType>(toType);
const EnumType *fromEnum = CastType<EnumType>(fromType); const EnumType *fromEnum = CastType<EnumType>(fromType);