projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[C++11] Add range based accessors for the Use-Def chain of a Value.
[oota-llvm.git]
/
lib
/
IR
/
Core.cpp
diff --git
a/lib/IR/Core.cpp
b/lib/IR/Core.cpp
index 6c012736deb77f4309abbce2be5b2b913ea56860..0c2e31a0b0246358efa0139dab485454d89fdfce 100644
(file)
--- a/
lib/IR/Core.cpp
+++ b/
lib/IR/Core.cpp
@@
-514,7
+514,7
@@
LLVMUseRef LLVMGetFirstUse(LLVMValueRef Val) {
Value::use_iterator I = V->use_begin();
if (I == V->use_end())
return 0;
- return wrap(&
(I.getUse())
);
+ return wrap(&
*I
);
}
LLVMUseRef LLVMGetNextUse(LLVMUseRef U) {