diff options
author | Dan Gohman <sunfish@google.com> | 2014-02-14 11:35:50 -0800 |
---|---|---|
committer | Dan Gohman <sunfish@google.com> | 2014-02-14 11:38:17 -0800 |
commit | 7db0b92aeaf21b8e49bb3b02ba43d61a114cbcf5 (patch) | |
tree | fe255238b43bfc878e479e46de923fe06f9cf191 | |
parent | 71fb6dcb87d2abd302080149d4a583a5e35e3697 (diff) |
Minor code simplification.
-rw-r--r-- | lib/Target/JSBackend/JSBackend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/JSBackend/JSBackend.cpp b/lib/Target/JSBackend/JSBackend.cpp index b204026ff0..dc2404866a 100644 --- a/lib/Target/JSBackend/JSBackend.cpp +++ b/lib/Target/JSBackend/JSBackend.cpp @@ -1568,8 +1568,8 @@ void JSWriter::printFunctionBody(const Function *F) { R.Render(); // Emit local variables - UsedVars["sp"] = Type::getInt32Ty(F->getContext())->getTypeID(); - UsedVars["label"] = Type::getInt32Ty(F->getContext())->getTypeID(); + UsedVars["sp"] = Type::IntegerTyID; + UsedVars["label"] = Type::IntegerTyID; if (!UsedVars.empty()) { unsigned Count = 0; for (VarMap::const_iterator VI = UsedVars.begin(); VI != UsedVars.end(); ++VI) { |