diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-02-04 00:33:54 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-02-04 00:33:54 +0000 |
commit | 74388b4ec07187aebb4264c704c18180b6af8133 (patch) | |
tree | 75f1f3b0854d6a37bc1dd4eb95ea85911713e47c /clang/lib/AST/ExprConstant.cpp | |
parent | 383727b63c18f74bf34fd6e4793a11cc0ece732b (diff) | |
download | bcm5719-llvm-74388b4ec07187aebb4264c704c18180b6af8133.tar.gz bcm5719-llvm-74388b4ec07187aebb4264c704c18180b6af8133.zip |
constexpr:
The recent support for potential constant expressions exposed a bug in the
implementation of libstdc++4.6, where numeric_limits<int>::min() is defined
as (int)1 << 31, which isn't a constant expression. Disable the 'constexpr
function never produces a constant expression' error inside system headers
to compensate.
llvm-svn: 149729
Diffstat (limited to 'clang/lib/AST/ExprConstant.cpp')
-rw-r--r-- | clang/lib/AST/ExprConstant.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp index a45aea974c7..701e9ccd563 100644 --- a/clang/lib/AST/ExprConstant.cpp +++ b/clang/lib/AST/ExprConstant.cpp @@ -575,7 +575,8 @@ CallStackFrame::~CallStackFrame() { static void describeCall(CallStackFrame *Frame, llvm::raw_ostream &Out) { unsigned ArgIndex = 0; bool IsMemberCall = isa<CXXMethodDecl>(Frame->Callee) && - !isa<CXXConstructorDecl>(Frame->Callee); + !isa<CXXConstructorDecl>(Frame->Callee) && + cast<CXXMethodDecl>(Frame->Callee)->isInstance(); if (!IsMemberCall) Out << *Frame->Callee << '('; |