]> granicus.if.org Git - clang/commitdiff
Revert r348029. I was git-ing and jumped the gun.
authorBill Wendling <isanbard@gmail.com>
Fri, 30 Nov 2018 20:44:11 +0000 (20:44 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 30 Nov 2018 20:44:11 +0000 (20:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@348032 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGExprConstant.cpp
test/CodeGen/builtin-constant-p.c

index ca86e107102d10dfddf0f4e83427b9b1961320bd..eb5e010968430251b3fbd92b97abe0276266dd0f 100644 (file)
@@ -1552,8 +1552,7 @@ llvm::Constant *ConstantEmitter::tryEmitPrivate(const Expr *E,
   if (destType->isReferenceType())
     Success = E->EvaluateAsLValue(Result, CGM.getContext());
   else
-    Success = E->EvaluateAsRValue(Result, CGM.getContext(),
-                                  /* InConstantContext */ true);
+    Success = E->EvaluateAsRValue(Result, CGM.getContext());
 
   llvm::Constant *C;
   if (Success && !Result.HasSideEffects)
index 943d2886324d25e7bc2c53b82fcb5a16065ae205..5cdcc721235ace212046a427381822f2ed3eb5c1 100644 (file)
@@ -157,14 +157,3 @@ static void src_fn(void) {
 void test14() {
   assign(dest_p, src_fn);
 }
-
-struct test15_s {
-  const char *name;
-  int num_args;
-};
-
-extern int test15_v;
-
-struct test15_s tcg_op_defs_org_x86_64[] = {
-    {"tag", __builtin_constant_p(test15_v) && !test15_v ? 0x10 : 0 },
-};