diff options
| author | Torok Edwin <edwintorok@gmail.com> | 2009-07-11 20:10:48 +0000 |
|---|---|---|
| committer | Torok Edwin <edwintorok@gmail.com> | 2009-07-11 20:10:48 +0000 |
| commit | 56d065972602c45a4109617f32eb8605e5017c5e (patch) | |
| tree | b74a0d6b8aa7cbcafe15f8128196d5afc60cf732 /llvm/lib/Analysis/LoopDependenceAnalysis.cpp | |
| parent | 3085b57bb8e47561fc290ea6bbbea92f08250a2d (diff) | |
| download | llvm-56d065972602c45a4109617f32eb8605e5017c5e.zip llvm-56d065972602c45a4109617f32eb8605e5017c5e.tar.gz llvm-56d065972602c45a4109617f32eb8605e5017c5e.tar.bz2 | |
assert(0) -> LLVM_UNREACHABLE.
Make llvm_unreachable take an optional string, thus moving the cerr<< out of
line.
LLVM_UNREACHABLE is now a simple wrapper that makes the message go away for
NDEBUG builds.
llvm-svn: 75379
Diffstat (limited to 'llvm/lib/Analysis/LoopDependenceAnalysis.cpp')
| -rw-r--r-- | llvm/lib/Analysis/LoopDependenceAnalysis.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/LoopDependenceAnalysis.cpp b/llvm/lib/Analysis/LoopDependenceAnalysis.cpp index f605783..79f92a6 100644 --- a/llvm/lib/Analysis/LoopDependenceAnalysis.cpp +++ b/llvm/lib/Analysis/LoopDependenceAnalysis.cpp @@ -24,6 +24,7 @@ #include "llvm/Analysis/ScalarEvolution.h" #include "llvm/Instructions.h" #include "llvm/Support/Debug.h" +#include "llvm/Support/ErrorHandling.h" #include "llvm/Target/TargetData.h" using namespace llvm; @@ -63,7 +64,7 @@ static Value *GetPointerOperand(Value *I) { return i->getPointerOperand(); if (StoreInst *i = dyn_cast<StoreInst>(I)) return i->getPointerOperand(); - assert(0 && "Value is no load or store instruction!"); + LLVM_UNREACHABLE("Value is no load or store instruction!"); // Never reached. return 0; } |
