diff options
author | Chris Lattner <sabre@nondot.org> | 2005-11-06 08:23:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-11-06 08:23:17 +0000 |
commit | c5455bcbd2457fe987fc7df66165de293a6629a2 (patch) | |
tree | d26ce30a99b5f6f9ed320e3cb94b80fa3f16dd58 /llvm/lib/Bytecode/Reader/Reader.cpp | |
parent | d5286ba3d5f61739025e8060313ee6378a6280f3 (diff) | |
download | bcm5719-llvm-c5455bcbd2457fe987fc7df66165de293a6629a2.tar.gz bcm5719-llvm-c5455bcbd2457fe987fc7df66165de293a6629a2.zip |
minor clarity changes, no functionality difference.
llvm-svn: 24223
Diffstat (limited to 'llvm/lib/Bytecode/Reader/Reader.cpp')
-rw-r--r-- | llvm/lib/Bytecode/Reader/Reader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bytecode/Reader/Reader.cpp b/llvm/lib/Bytecode/Reader/Reader.cpp index f52cfa61678..165e085cf4c 100644 --- a/llvm/lib/Bytecode/Reader/Reader.cpp +++ b/llvm/lib/Bytecode/Reader/Reader.cpp @@ -1901,8 +1901,7 @@ void BytecodeReader::ParseModuleGlobalInfo() { error("Invalid type (type type) for global var!"); unsigned LinkageID = (VarType >> 2) & 7; bool isConstant = VarType & 1; - bool hasInitializer = VarType & 2; - GlobalValue::LinkageTypes Linkage; + bool hasInitializer = (VarType & 2) != 0; unsigned Alignment = 0; // An extension word is present when linkage = 3 (internal) and hasinit = 0. @@ -1915,6 +1914,7 @@ void BytecodeReader::ParseModuleGlobalInfo() { Alignment = (1 << ((ExtWord >> 4) & 31)) >> 1; } + GlobalValue::LinkageTypes Linkage; switch (LinkageID) { case 0: Linkage = GlobalValue::ExternalLinkage; break; case 1: Linkage = GlobalValue::WeakLinkage; break; |