summaryrefslogtreecommitdiffstats
path: root/lib/VMCore/Module.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-02-15 23:27:50 +0000
committerBill Wendling <isanbard@gmail.com>2012-02-15 23:27:50 +0000
commit426f21573219eeba8f6981d7ddb4f1d2445b6343 (patch)
treedf8ed8c7434468f0d1f1b84557b6706c12a751fe /lib/VMCore/Module.cpp
parentcc2037be2cf0159e9f7a917a4db434258fe6eb6b (diff)
downloadexternal_llvm-426f21573219eeba8f6981d7ddb4f1d2445b6343.zip
external_llvm-426f21573219eeba8f6981d7ddb4f1d2445b6343.tar.gz
external_llvm-426f21573219eeba8f6981d7ddb4f1d2445b6343.tar.bz2
Use the enum instead of 'unsigned'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150632 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Module.cpp')
-rw-r--r--lib/VMCore/Module.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VMCore/Module.cpp b/lib/VMCore/Module.cpp
index 9de5db5..cc6ae0e 100644
--- a/lib/VMCore/Module.cpp
+++ b/lib/VMCore/Module.cpp
@@ -339,7 +339,8 @@ getModuleFlagsMetadata(SmallVectorImpl<ModuleFlagEntry> &Flags) const {
ConstantInt *Behavior = cast<ConstantInt>(Flag->getOperand(0));
MDString *Key = cast<MDString>(Flag->getOperand(1));
Value *Val = Flag->getOperand(2);
- Flags.push_back(ModuleFlagEntry(Behavior->getZExtValue(), Key, Val));
+ Flags.push_back(ModuleFlagEntry(ModAttrBehavior(Behavior->getZExtValue()),
+ Key, Val));
}
}