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:
2967a80
)
Reuse variable
author
Matt Arsenault
<Matthew.Arsenault@amd.com>
Mon, 30 Sep 2013 23:31:50 +0000
(23:31 +0000)
committer
Matt Arsenault
<Matthew.Arsenault@amd.com>
Mon, 30 Sep 2013 23:31:50 +0000
(23:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191712
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/IR/Module.cpp
patch
|
blob
|
history
diff --git
a/lib/IR/Module.cpp
b/lib/IR/Module.cpp
index f200da892328639665ec6304010b3a79332db790..58115efdc3f9d86023b3ccffd5f544f3faecbcb3 100644
(file)
--- a/
lib/IR/Module.cpp
+++ b/
lib/IR/Module.cpp
@@
-262,7
+262,7
@@
Constant *Module::getOrInsertGlobal(StringRef Name, Type *Ty) {
// right type.
Type *GVTy = GV->getType();
PointerType *PTy = PointerType::get(Ty, GVTy->getPointerAddressSpace());
- if (GV
->getType()
!= PTy)
+ if (GV
Ty
!= PTy)
return ConstantExpr::getBitCast(GV, PTy);
// Otherwise, we just found the existing function or a prototype.