Explain to the compiler why TargetAddr is not used uninitialized later.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149832 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
index 1eb7bf2..c0845fb 100644
--- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
+++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
@@ -181,7 +181,7 @@
Loc->second.second + RE.Offset;
} else {
// FIXME: Get the address of the target section and add that to RE.Offset
- assert(0 && ("Non-function relocation not implemented yet!"));
+ llvm_unreachable("Non-function relocation not implemented yet!");
}
switch (RE.Type) {
@@ -230,7 +230,7 @@
Loc->second.second + RE.Offset;
} else {
// FIXME: Get the address of the target section and add that to RE.Offset
- assert(0 && ("Non-function relocation not implemented yet!"));
+ llvm_unreachable("Non-function relocation not implemented yet!");
}
switch (RE.Type) {