projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
InstCombine: X & -C != -C -> X <= u ~C
[oota-llvm.git]
/
lib
/
IR
/
Constants.cpp
diff --git
a/lib/IR/Constants.cpp
b/lib/IR/Constants.cpp
index d370d409e007aa18a794f729d1936ddbb87ee1bf..e04be1f59d5a09789134c9316fc9b5f9d2cd2ebd 100644
(file)
--- a/
lib/IR/Constants.cpp
+++ b/
lib/IR/Constants.cpp
@@
-1389,7
+1389,7
@@
void BlockAddress::replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U) {
BasicBlock *NewBB = getBasicBlock();
if (U == &Op<0>())
- NewF = cast<Function>(To);
+ NewF = cast<Function>(To
->stripPointerCasts()
);
else
NewBB = cast<BasicBlock>(To);