projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
InstCombineCompares.cpp: Fix a warning. [-Wbraced-scalar-init]
[oota-llvm.git]
/
lib
/
Transforms
/
InstCombine
/
InstCombineCompares.cpp
diff --git
a/lib/Transforms/InstCombine/InstCombineCompares.cpp
b/lib/Transforms/InstCombine/InstCombineCompares.cpp
index 1e977e13530039994abb737731eabe160eefc692..7e2912dac99753b0ffeeb350f872fccb43255263 100644
(file)
--- a/
lib/Transforms/InstCombine/InstCombineCompares.cpp
+++ b/
lib/Transforms/InstCombine/InstCombineCompares.cpp
@@
-821,7
+821,7
@@
static Value *rewriteGEPAsOffset(Value *Start, Value *Base,
Value *GEP =
Builder.CreateInBoundsGEP(Start->getType()->getPointerElementType(),
- NewBase,
{NewInsts[Val]}
,
+ NewBase,
makeArrayRef(NewInsts[Val])
,
Val->getName() + ".ptr");
if (!Val->getType()->isPointerTy()) {