aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Constants.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2014-12-06 05:57:06 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2014-12-06 05:57:06 +0000
commitfc3062f65aee7ed02b0bdb75f3883f6030d7bf9f (patch)
treebeeb240ffc6a00a5933f44ece09cad00410a20ab /llvm/lib/IR/Constants.cpp
parent8d5f5e42389514999ee8a6ac747b16b25e7adfcd (diff)
downloadllvm-fc3062f65aee7ed02b0bdb75f3883f6030d7bf9f.zip
llvm-fc3062f65aee7ed02b0bdb75f3883f6030d7bf9f.tar.gz
llvm-fc3062f65aee7ed02b0bdb75f3883f6030d7bf9f.tar.bz2
Reformat.
llvm-svn: 223580
Diffstat (limited to 'llvm/lib/IR/Constants.cpp')
-rw-r--r--llvm/lib/IR/Constants.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/IR/Constants.cpp b/llvm/lib/IR/Constants.cpp
index e0cb835..96d9510 100644
--- a/llvm/lib/IR/Constants.cpp
+++ b/llvm/lib/IR/Constants.cpp
@@ -554,8 +554,7 @@ Constant *ConstantInt::getFalse(Type *Ty) {
ConstantInt::getFalse(Ty->getContext()));
}
-
-// Get a ConstantInt from an APInt. Note that the value stored in the DenseMap
+// Get a ConstantInt from an APInt. Note that the value stored in the DenseMap
// as the key, is a DenseMapAPIntKeyInfo::KeyTy which has provided the
// operator== and operator!= to ensure that the DenseMap doesn't attempt to
// compare APInt's of different widths, which would violate an APInt class
@@ -566,7 +565,8 @@ ConstantInt *ConstantInt::get(LLVMContext &Context, const APInt &V) {
// get an existing value or the insertion position
LLVMContextImpl *pImpl = Context.pImpl;
ConstantInt *&Slot = pImpl->IntConstants[DenseMapAPIntKeyInfo::KeyTy(V, ITy)];
- if (!Slot) Slot = new ConstantInt(ITy, V);
+ if (!Slot)
+ Slot = new ConstantInt(ITy, V);
return Slot;
}