From 408a25c583f3d3e7e9b6ef90a56ce435022591df Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Sun, 5 Feb 2012 14:14:35 +0000 Subject: [PATCH] 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 --- lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp index 1eb7bf2dc81..c0845fbbb20 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) { -- 2.34.1