From: Anders Waldenborg Date: Tue, 29 Oct 2013 09:37:28 +0000 (+0000) Subject: Fix misapplied patch in r193597 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=72202297a90563ec3eedd3015395c8d1a8db0a87;p=llvm Fix misapplied patch in r193597 Sorry Peter Zotov, entirely my fault. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193598 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/IR/Core.cpp b/lib/IR/Core.cpp index f681b2e140b..56d28e42db7 100644 --- a/lib/IR/Core.cpp +++ b/lib/IR/Core.cpp @@ -1262,8 +1262,8 @@ void LLVMSetAlignment(LLVMValueRef V, unsigned Bytes) { LI->setAlignment(Bytes); else if (StoreInst *SI = dyn_cast(P)) SI->setAlignment(Bytes); - - llvm_unreachable("only GlobalValue, LoadInst and StoreInst have alignment"); + else + llvm_unreachable("only GlobalValue, LoadInst and StoreInst have alignment"); } /*--.. Operations on global variables ......................................--*/