diff options
author | Torok Edwin <edwintorok@gmail.com> | 2009-07-08 18:01:40 +0000 |
---|---|---|
committer | Torok Edwin <edwintorok@gmail.com> | 2009-07-08 18:01:40 +0000 |
commit | ab7c09b6b6f4516a631fd6788918c237c83939af (patch) | |
tree | edf8970f645aa30e8d15802d5ef85768dcaf0412 /lib/VMCore/Value.cpp | |
parent | 4de77f8afcf5920234c86bd8fba3b164b1a17a72 (diff) |
Start converting to new error handling API.
cerr+abort -> llvm_report_error
assert(0)+abort -> LLVM_UNREACHABLE (assert(0)+llvm_unreachable-> abort() included)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75018 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Value.cpp')
-rw-r--r-- | lib/VMCore/Value.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/VMCore/Value.cpp b/lib/VMCore/Value.cpp index e980a5d0ff..8c5d551c15 100644 --- a/lib/VMCore/Value.cpp +++ b/lib/VMCore/Value.cpp @@ -19,6 +19,7 @@ #include "llvm/Module.h" #include "llvm/ValueSymbolTable.h" #include "llvm/Support/Debug.h" +#include "llvm/Support/ErrorHandling.h" #include "llvm/Support/LeakDetector.h" #include "llvm/Support/ManagedStatic.h" #include "llvm/Support/ValueHandle.h" @@ -514,8 +515,8 @@ void ValueHandleBase::ValueIsDeleted(Value *V) { cerr << "While deleting: " << *V->getType() << " %" << V->getNameStr() << "\n"; #endif - cerr << "An asserting value handle still pointed to this value!\n"; - abort(); + llvm_report_error("An asserting value handle still pointed to this" + "value!"); case Weak: // Weak just goes to null, which will unlink it from the list. ThisNode->operator=(0); |