[llvm-commits] [llvm] r149832 - /llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp

Duncan Sands baldrick at free.fr
Sun Feb 5 06:14:35 PST 2012


Author: baldrick
Date: Sun Feb  5 08:14:35 2012
New Revision: 149832

URL: http://llvm.org/viewvc/llvm-project?rev=149832&view=rev
Log:
Explain to the compiler why TargetAddr is not used uninitialized later.

Modified:
    llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp

Modified: llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp?rev=149832&r1=149831&r2=149832&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp Sun Feb  5 08:14:35 2012
@@ -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) {





More information about the llvm-commits mailing list