diff options
author | Matthias Gehre <M.Gehre@gmx.de> | 2016-07-14 20:00:48 +0000 |
---|---|---|
committer | Matthias Gehre <M.Gehre@gmx.de> | 2016-07-14 20:00:48 +0000 |
commit | 03fadabe47e8441c7d29db0314e79eddadeff969 (patch) | |
tree | 5c3d08d6c3071596a88f7e1415e8df8a6d4c0f06 /lldb/packages/Python/lldbsuite/test/source-manager/TestSourceManager.py | |
parent | 488f861b836abcb08202a273f1839ca8c81cd14e (diff) | |
download | bcm5719-llvm-03fadabe47e8441c7d29db0314e79eddadeff969.tar.gz bcm5719-llvm-03fadabe47e8441c7d29db0314e79eddadeff969.zip |
cppcoreguidelines-pro-bounds-constant-array-index: crash for value dependent index in c++03 mode
Summary:
When the expression is value dependent,
isIntegerConstantExpr() crashes in C++03 mode with
../tools/clang/lib/AST/ExprConstant.cpp:9330: (anonymous namespace)::ICEDiag CheckICE(const clang::Expr *, const clang::ASTContext &):
Assertion `!E->isValueDependent() && "Should not see value dependent exprs!"' failed.
In C++11 mode, that assert does not trigger.
This commit works around this in the check. We don't check
value-dependent indices and instead check their specialization.
Reviewers: alexfh, aaron.ballman
Subscribers: nemanjai, cfe-commits
Differential Revision: http://reviews.llvm.org/D22190
llvm-svn: 275461
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/source-manager/TestSourceManager.py')
0 files changed, 0 insertions, 0 deletions