Skip to content

Commit 90a0563

Browse files
committed
Revert r348029. I was git-ing and jumped the gun.
llvm-svn: 348032
1 parent 549f9cd commit 90a0563

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

clang/lib/CodeGen/CGExprConstant.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1552,8 +1552,7 @@ llvm::Constant *ConstantEmitter::tryEmitPrivate(const Expr *E,
15521552
if (destType->isReferenceType())
15531553
Success = E->EvaluateAsLValue(Result, CGM.getContext());
15541554
else
1555-
Success = E->EvaluateAsRValue(Result, CGM.getContext(),
1556-
/* InConstantContext */ true);
1555+
Success = E->EvaluateAsRValue(Result, CGM.getContext());
15571556

15581557
llvm::Constant *C;
15591558
if (Success && !Result.HasSideEffects)

clang/test/CodeGen/builtin-constant-p.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,3 @@ static void src_fn(void) {
157157
void test14() {
158158
assign(dest_p, src_fn);
159159
}
160-
161-
struct test15_s {
162-
const char *name;
163-
int num_args;
164-
};
165-
166-
extern int test15_v;
167-
168-
struct test15_s tcg_op_defs_org_x86_64[] = {
169-
{"tag", __builtin_constant_p(test15_v) && !test15_v ? 0x10 : 0 },
170-
};

0 commit comments

Comments
 (0)