]> granicus.if.org Git - clang/commitdiff
Silence an MSVC warning about not all control paths returning a value; NFC.
authorAaron Ballman <aaron@aaronballman.com>
Fri, 27 Feb 2015 13:55:58 +0000 (13:55 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Fri, 27 Feb 2015 13:55:58 +0000 (13:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@230754 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGAtomic.cpp

index b753f9bfe8b33daf5ada38c7a7c8c7adfd6b8a27..e9df31e0fddb3c587e10ed64538a1bcd7529e1b9 100644 (file)
@@ -264,6 +264,7 @@ AtomicInfo::translateAtomicOrdering(const llvm::AtomicOrdering AO) {
   case llvm::SequentiallyConsistent:
     return AtomicExpr::AO_ABI_memory_order_seq_cst;
   }
+  llvm_unreachable("Unhandled AtomicOrdering");
 }
 
 llvm::Value *AtomicInfo::CreateTempAlloca() const {