projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix another assert failure very similar to PR16651's test case. This
[oota-llvm.git]
/
lib
/
Transforms
/
Scalar
/
SROA.cpp
diff --git
a/lib/Transforms/Scalar/SROA.cpp
b/lib/Transforms/Scalar/SROA.cpp
index 7235c0d6f22e2ada00a6541b07f709665d1bd907..5d7fa4b01f9d4e9350d46c5817777d34d4ed1288 100644
(file)
--- a/
lib/Transforms/Scalar/SROA.cpp
+++ b/
lib/Transforms/Scalar/SROA.cpp
@@
-1539,6
+1539,8
@@
static bool isVectorPromotionViableForSlice(
}
if (!canConvertValue(DL, STy, SliceTy))
return false;
+ } else {
+ return false;
}
return true;