r230754 - Silence an MSVC warning about not all control paths returning a value; NFC.

Aaron Ballman aaron at aaronballman.com
Fri Feb 27 05:55:58 PST 2015


Author: aaronballman
Date: Fri Feb 27 07:55:58 2015
New Revision: 230754

URL: http://llvm.org/viewvc/llvm-project?rev=230754&view=rev
Log:
Silence an MSVC warning about not all control paths returning a value; NFC.

Modified:
    cfe/trunk/lib/CodeGen/CGAtomic.cpp

Modified: cfe/trunk/lib/CodeGen/CGAtomic.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGAtomic.cpp?rev=230754&r1=230753&r2=230754&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGAtomic.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGAtomic.cpp Fri Feb 27 07:55:58 2015
@@ -264,6 +264,7 @@ AtomicInfo::translateAtomicOrdering(cons
   case llvm::SequentiallyConsistent:
     return AtomicExpr::AO_ABI_memory_order_seq_cst;
   }
+  llvm_unreachable("Unhandled AtomicOrdering");
 }
 
 llvm::Value *AtomicInfo::CreateTempAlloca() const {





More information about the cfe-commits mailing list