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:
0bc2f48
)
Quiet a compiler warning about assignment in an if-then conditional.
author
Bill Wendling
<isanbard@gmail.com>
Wed, 25 Apr 2007 23:52:02 +0000
(23:52 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Wed, 25 Apr 2007 23:52:02 +0000
(23:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36454
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/AsmParser/llvmAsmParser.y
patch
|
blob
|
history
diff --git
a/lib/AsmParser/llvmAsmParser.y
b/lib/AsmParser/llvmAsmParser.y
index 136e1336f15b31fc98277eba2f9041adb745c306..ab10cc7d56d528288a979104103733cfb443f6ad 100644
(file)
--- a/
lib/AsmParser/llvmAsmParser.y
+++ b/
lib/AsmParser/llvmAsmParser.y
@@
-2059,8
+2059,7
@@
Definition
}
if (V == 0)
GEN_ERROR(std::string("Invalid aliasee for alias: ") + $1);
- GlobalValue* Aliasee;
- if (Aliasee = dyn_cast<GlobalValue>(V)) {
+ if (GlobalValue* Aliasee = dyn_cast<GlobalValue>(V)) {
GlobalAlias* GA = new GlobalAlias(VTy, $4, Name, Aliasee, CurModule.CurrentModule);
GA->setVisibility($2);
InsertValue(GA, CurModule.Values);