diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-24 23:12:02 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-24 23:12:02 +0000 |
commit | edb4a703255623eef2c56e644f9fdc04cadd7336 (patch) | |
tree | 0ef285683687c1c927ff68af16d77b3645e0d66d /llvm/unittests/ExecutionEngine | |
parent | fcd54f73bf465f9fa7a820344642f848b5285a3b (diff) | |
download | bcm5719-llvm-edb4a703255623eef2c56e644f9fdc04cadd7336.tar.gz bcm5719-llvm-edb4a703255623eef2c56e644f9fdc04cadd7336.zip |
Revert the ConstantInt constructors back to their 2.5 forms where possible, thanks to contexts-on-types. More to come.
llvm-svn: 77011
Diffstat (limited to 'llvm/unittests/ExecutionEngine')
-rw-r--r-- | llvm/unittests/ExecutionEngine/JIT/JITTest.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp b/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp index 41caeb21bf8..129f21f84fb 100644 --- a/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp +++ b/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp @@ -39,8 +39,7 @@ Function *makeReturnGlobal(std::string Name, GlobalVariable *G, Module *M) { IRBuilder<> builder(Entry); Value *Load = builder.CreateLoad(G); const Type *GTy = G->getType()->getElementType(); - Value *Add = builder.CreateAdd(Load, - getGlobalContext().getConstantInt(GTy, 1LL)); + Value *Add = builder.CreateAdd(Load, ConstantInt::get(GTy, 1LL)); builder.CreateStore(Add, G); builder.CreateRet(Add); return F; |