From a36a7825fbcd9c8d8147ee00334569c976199ba9 Mon Sep 17 00:00:00 2001 From: Anders Waldenborg Date: Tue, 29 Oct 2013 09:37:28 +0000 Subject: Fix misapplied patch in r193597 Sorry Peter Zotov, entirely my fault. llvm-svn: 193598 --- llvm/lib/IR/Core.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/IR/Core.cpp') diff --git a/llvm/lib/IR/Core.cpp b/llvm/lib/IR/Core.cpp index f681b2e140b..56d28e42db7 100644 --- a/llvm/lib/IR/Core.cpp +++ b/llvm/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 ......................................--*/ -- cgit v1.2.3