diff options
author | Kirill Bobyrev <kbobyrev@google.com> | 2020-06-15 12:14:15 +0200 |
---|---|---|
committer | Kirill Bobyrev <kbobyrev@google.com> | 2020-06-15 12:14:15 +0200 |
commit | 550c4562d18a6ab6ce60a062dceb163313da0ddd (patch) | |
tree | 3d85cdfe53992da3c838dcd89739b16465d8f278 /clang/lib/CodeGen/CGExprComplex.cpp | |
parent | ec4e68e667bf0369c36f0e4291618ef2a614bbf0 (diff) | |
download | llvm-550c4562d18a6ab6ce60a062dceb163313da0ddd.zip llvm-550c4562d18a6ab6ce60a062dceb163313da0ddd.tar.gz llvm-550c4562d18a6ab6ce60a062dceb163313da0ddd.tar.bz2 |
Revert "Prevent IR-gen from emitting consteval declarations"
This reverts commit 3bab88b7baa20b276faaee0aa7ca87f636c91877.
This patch causes test failures:
http://lab.llvm.org:8011/builders/clang-cmake-armv7-quick/builds/17260
Diffstat (limited to 'clang/lib/CodeGen/CGExprComplex.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGExprComplex.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGExprComplex.cpp b/clang/lib/CodeGen/CGExprComplex.cpp index 13a5713..1cf497c7 100644 --- a/clang/lib/CodeGen/CGExprComplex.cpp +++ b/clang/lib/CodeGen/CGExprComplex.cpp @@ -13,7 +13,6 @@ #include "CGOpenMPRuntime.h" #include "CodeGenFunction.h" #include "CodeGenModule.h" -#include "ConstantEmitter.h" #include "clang/AST/StmtVisitor.h" #include "llvm/ADT/STLExtras.h" #include "llvm/IR/Constants.h" @@ -103,9 +102,6 @@ public: } ComplexPairTy VisitExpr(Expr *S); ComplexPairTy VisitConstantExpr(ConstantExpr *E) { - if (llvm::Constant *Result = ConstantEmitter(CGF).tryEmitConstantExpr(E)) - return ComplexPairTy(Result->getAggregateElement(0U), - Result->getAggregateElement(1U)); return Visit(E->getSubExpr()); } ComplexPairTy VisitParenExpr(ParenExpr *PE) { return Visit(PE->getSubExpr());} |