summaryrefslogtreecommitdiff
path: root/lib/IR
diff options
context:
space:
mode:
authorAnders Waldenborg <anders@0x63.nu>2013-10-29 09:37:28 +0000
committerAnders Waldenborg <anders@0x63.nu>2013-10-29 09:37:28 +0000
commit72202297a90563ec3eedd3015395c8d1a8db0a87 (patch)
treebeb92b520df6adc75769891653c55054fa864773 /lib/IR
parent7959f209ba8e63ffaf7335842deddda4ca0480e7 (diff)
downloadllvm-72202297a90563ec3eedd3015395c8d1a8db0a87.tar.gz
llvm-72202297a90563ec3eedd3015395c8d1a8db0a87.tar.bz2
llvm-72202297a90563ec3eedd3015395c8d1a8db0a87.tar.xz
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
Diffstat (limited to 'lib/IR')
-rw-r--r--lib/IR/Core.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/IR/Core.cpp b/lib/IR/Core.cpp
index f681b2e140..56d28e42db 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<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 ......................................--*/