summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-11-06 04:27:31 +0000
committerChris Lattner <sabre@nondot.org>2009-11-06 04:27:31 +0000
commit46b5c642b9baca354ba18f3dbb37f4020848d0f3 (patch)
tree68fd5d94ef426e6da66de84d531927c89fa220fb /llvm/lib/Transforms/Utils/SimplifyCFG.cpp
parent421a5c9651232f5553658f57603ce8e61ef28748 (diff)
downloadbcm5719-llvm-46b5c642b9baca354ba18f3dbb37f4020848d0f3.tar.gz
bcm5719-llvm-46b5c642b9baca354ba18f3dbb37f4020848d0f3.zip
remove a bunch of extraneous LLVMContext arguments
from various APIs, addressing PR5325. llvm-svn: 86231
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyCFG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index 8e1fb98b704..a8a9e306f37 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -1217,7 +1217,7 @@ static bool FoldCondBranchOnPHI(BranchInst *BI) {
}
// Check for trivial simplification.
- if (Constant *C = ConstantFoldInstruction(N, BB->getContext())) {
+ if (Constant *C = ConstantFoldInstruction(N)) {
TranslateMap[BBI] = C;
delete N; // Constant folded away, don't need actual inst
} else {
OpenPOWER on IntegriCloud