projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c90a5c2
)
Use 0 instead of false to return a null pointer.
author
Dan Gohman
<gohman@apple.com>
Fri, 17 Oct 2008 00:56:52 +0000
(
00:56
+0000)
committer
Dan Gohman
<gohman@apple.com>
Fri, 17 Oct 2008 00:56:52 +0000
(
00:56
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57660
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/LoopUnswitch.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/LoopUnswitch.cpp
b/lib/Transforms/Scalar/LoopUnswitch.cpp
index fbfe2977278eab2dca5decac4113891267a53113..455338b3341d54d0716a5d8f9f69a7621610a2cc 100644
(file)
--- a/
lib/Transforms/Scalar/LoopUnswitch.cpp
+++ b/
lib/Transforms/Scalar/LoopUnswitch.cpp
@@
-163,7
+163,7
@@
LoopPass *llvm::createLoopUnswitchPass(bool Os) {
/// Otherwise, return null.
static Value *FindLIVLoopCondition(Value *Cond, Loop *L, bool &Changed) {
// Constants should be folded, not unswitched on!
- if (isa<Constant>(Cond)) return
false
;
+ if (isa<Constant>(Cond)) return
0
;
// TODO: Handle: br (VARIANT|INVARIANT).
// TODO: Hoist simple expressions out of loops.