mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-19 18:10:14 +00:00
Quiet a compiler warning about assignment in an if-then conditional.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36454 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0bc2f48d6f
commit
9de1371fc9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user