diff options
117 files changed, 342 insertions, 336 deletions
diff --git a/include/clang/AST/Attr.h b/include/clang/AST/Attr.h index 2f0eafa5c1..67975e4f9c 100644 --- a/include/clang/AST/Attr.h +++ b/include/clang/AST/Attr.h @@ -66,11 +66,11 @@ protected: virtual ~Attr(); void* operator new(size_t bytes) throw() { - assert(0 && "Attrs cannot be allocated with regular 'new'."); + llvm_unreachable("Attrs cannot be allocated with regular 'new'."); return 0; } void operator delete(void* data) throw() { - assert(0 && "Attrs cannot be released with regular 'delete'."); + llvm_unreachable("Attrs cannot be released with regular 'delete'."); } public: diff --git a/include/clang/AST/DeclTemplate.h b/include/clang/AST/DeclTemplate.h index 04c6674426..138e47d1a9 100644 --- a/include/clang/AST/DeclTemplate.h +++ b/include/clang/AST/DeclTemplate.h @@ -908,7 +908,7 @@ protected: // FIXME: This should probably never be called, but it's here as TemplateParmPosition() : Depth(0), Position(0) - { /* assert(0 && "Cannot create positionless template parameter"); */ } + { /* llvm_unreachable("Cannot create positionless template parameter"); */ } TemplateParmPosition(unsigned D, unsigned P) : Depth(D), Position(P) diff --git a/include/clang/AST/DeclVisitor.h b/include/clang/AST/DeclVisitor.h index aee1998028..b5b6bd42dd 100644 --- a/include/clang/AST/DeclVisitor.h +++ b/include/clang/AST/DeclVisitor.h @@ -30,7 +30,7 @@ class DeclVisitor { |