OSDN Git Service

Fix misapplied patch in r193597
authorAnders Waldenborg <anders@0x63.nu>
Tue, 29 Oct 2013 09:37:28 +0000 (09:37 +0000)
committerAnders Waldenborg <anders@0x63.nu>
Tue, 29 Oct 2013 09:37:28 +0000 (09:37 +0000)
Sorry Peter Zotov, entirely my fault.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193598 91177308-0d34-0410-b5e6-96231b3b80d8

lib/IR/Core.cpp

index f681b2e..56d28e4 100644 (file)
@@ -1262,8 +1262,8 @@ void LLVMSetAlignment(LLVMValueRef V, unsigned Bytes) {
     LI->setAlignment(Bytes);
   else if (StoreInst *SI = dyn_cast<StoreInst>(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 ......................................--*/