projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Grab an LLVM Context from an instruction that exists rather than one
[oota-llvm.git]
/
lib
/
Transforms
/
Scalar
/
LICM.cpp
diff --git
a/lib/Transforms/Scalar/LICM.cpp
b/lib/Transforms/Scalar/LICM.cpp
index fe37ab4caa1b9ba8916184f7aa8f88217e939d78..6df246fa80e3d1ade9bbb61c7c0834003a721f13 100644
(file)
--- a/
lib/Transforms/Scalar/LICM.cpp
+++ b/
lib/Transforms/Scalar/LICM.cpp
@@
-593,7
+593,7
@@
void LICM::sink(Instruction &I) {
if (AI) {
std::vector<AllocaInst*> Allocas;
Allocas.push_back(AI);
- PromoteMemToReg(Allocas, *DT, *DF,
I.
getContext(), CurAST);
+ PromoteMemToReg(Allocas, *DT, *DF,
AI->
getContext(), CurAST);
}
}
}