1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

Quiet a compiler warning about assignment in an if-then conditional.

llvm-svn: 36454
This commit is contained in:
Bill Wendling 2007-04-25 23:52:02 +00:00
parent 22ce25e1ec
commit 6968d3cb0d

View File

@ -2059,8 +2059,7 @@ Definition
} }
if (V == 0) if (V == 0)
GEN_ERROR(std::string("Invalid aliasee for alias: ") + $1); GEN_ERROR(std::string("Invalid aliasee for alias: ") + $1);
GlobalValue* Aliasee; if (GlobalValue* Aliasee = dyn_cast<GlobalValue>(V)) {
if (Aliasee = dyn_cast<GlobalValue>(V)) {
GlobalAlias* GA = new GlobalAlias(VTy, $4, Name, Aliasee, CurModule.CurrentModule); GlobalAlias* GA = new GlobalAlias(VTy, $4, Name, Aliasee, CurModule.CurrentModule);
GA->setVisibility($2); GA->setVisibility($2);
InsertValue(GA, CurModule.Values); InsertValue(GA, CurModule.Values);