diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-11-06 22:56:54 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-11-06 22:56:54 +0000 |
commit | b8f58b53dd3b3cbecf6946b0ce6fc9923db9223a (patch) | |
tree | 966c7423884f065ec8aa174c24ac7aed2417a1eb /polly/lib/CodeGen/CodeGeneration.cpp | |
parent | 0fcdac363cbff6c16cf205cc88e072e82bbf8975 (diff) | |
download | bcm5719-llvm-b8f58b53dd3b3cbecf6946b0ce6fc9923db9223a.tar.gz bcm5719-llvm-b8f58b53dd3b3cbecf6946b0ce6fc9923db9223a.zip |
polly/ADT: Remove implicit ilist iterator conversions, NFC
Remove all the implicit ilist iterator conversions from polly, in
preparation for making them illegal in ADT. There was one oddity I came
across: at line 95 of lib/CodeGen/LoopGenerators.cpp, there was a
post-increment `Builder.GetInsertPoint()++`.
Since it was a no-op, I removed it, but I admit I wonder if it might be
a bug (both before and after this change)? Perhaps it should be a
pre-increment?
llvm-svn: 252357
Diffstat (limited to 'polly/lib/CodeGen/CodeGeneration.cpp')
-rw-r--r-- | polly/lib/CodeGen/CodeGeneration.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/lib/CodeGen/CodeGeneration.cpp b/polly/lib/CodeGen/CodeGeneration.cpp index 4ea9db338bc..7e6f044953d 100644 --- a/polly/lib/CodeGen/CodeGeneration.cpp +++ b/polly/lib/CodeGen/CodeGeneration.cpp @@ -153,7 +153,7 @@ public: Value *RTC = buildRTC(Builder, NodeBuilder.getExprBuilder()); Builder.GetInsertBlock()->getTerminator()->setOperand(0, RTC); - Builder.SetInsertPoint(StartBlock->begin()); + Builder.SetInsertPoint(&StartBlock->front()); NodeBuilder.create(AstRoot); |