summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2015-01-22 17:52:08 +0000
committerAdrian Prantl <aprantl@apple.com>2015-01-22 17:52:08 +0000
commitd4255baedecbcf2fd95bff327fe761b656fdc1ca (patch)
tree0c57ea4ef85010d267fb98d9e0174e3d2e76600a
parente7d473461ea2ca1cfd905efa481804fd9b52a072 (diff)
downloadbcm5719-llvm-d4255baedecbcf2fd95bff327fe761b656fdc1ca.tar.gz
bcm5719-llvm-d4255baedecbcf2fd95bff327fe761b656fdc1ca.zip
Fix the condition in this assertion, and also make it into an unreachable.
llvm-svn: 226843
-rw-r--r--llvm/include/llvm/IR/DebugInfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/IR/DebugInfo.h b/llvm/include/llvm/IR/DebugInfo.h
index 4a80359f721..b2fc6fa95d4 100644
--- a/llvm/include/llvm/IR/DebugInfo.h
+++ b/llvm/include/llvm/IR/DebugInfo.h
@@ -904,7 +904,7 @@ public:
case dwarf::DW_OP_plus: std::advance(I, 2); break;
case dwarf::DW_OP_deref: std::advance(I, 1); break;
default:
- assert("unsupported operand");
+ llvm_unreachable("unsupported operand");
}
}
};
OpenPOWER on IntegriCloud