aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ExecutionEngine
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2012-02-05 14:14:35 +0000
committerDuncan Sands <baldrick@free.fr>2012-02-05 14:14:35 +0000
commit408a25c583f3d3e7e9b6ef90a56ce435022591df (patch)
treebabc76466a0a3ab28fccc934f1396c0b823bec03 /lib/ExecutionEngine
parentcc870a8f936bfc478b7d3d39724dd604a9de8f76 (diff)
downloadexternal_llvm-408a25c583f3d3e7e9b6ef90a56ce435022591df.zip
external_llvm-408a25c583f3d3e7e9b6ef90a56ce435022591df.tar.gz
external_llvm-408a25c583f3d3e7e9b6ef90a56ce435022591df.tar.bz2
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
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r--lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp4
1 files changed, 2 insertions, 2 deletions
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 @@ void RuntimeDyldELF::resolveX86_64Relocation(StringRef Name,
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 @@ void RuntimeDyldELF::resolveX86Relocation(StringRef Name,
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) {