Explain to the compiler why TargetAddr is not used uninitialized later.
authorDuncan Sands <baldrick@free.fr>
Sun, 5 Feb 2012 14:14:35 +0000 (14:14 +0000)
committerDuncan Sands <baldrick@free.fr>
Sun, 5 Feb 2012 14:14:35 +0000 (14:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149832 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp

index 1eb7bf2dc8164d025fd82cb0e872f772e779e1ee..c0845fbbb205401c415c299931278098038c6098 100644 (file)
@@ -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) {