[llvm] r193598 - Fix misapplied patch in r193597
Anders Waldenborg
anders at 0x63.nu
Tue Oct 29 02:37:29 PDT 2013
Author: andersg
Date: Tue Oct 29 04:37:28 2013
New Revision: 193598
URL: http://llvm.org/viewvc/llvm-project?rev=193598&view=rev
Log:
Fix misapplied patch in r193597
Sorry Peter Zotov, entirely my fault.
Modified:
llvm/trunk/lib/IR/Core.cpp
Modified: llvm/trunk/lib/IR/Core.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Core.cpp?rev=193598&r1=193597&r2=193598&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Core.cpp (original)
+++ llvm/trunk/lib/IR/Core.cpp Tue Oct 29 04:37:28 2013
@@ -1262,8 +1262,8 @@ void LLVMSetAlignment(LLVMValueRef V, un
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 ......................................--*/
More information about the llvm-commits
mailing list