summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-01-13 21:24:18 +0000
committerJustin Bogner <mail@justinbogner.com>2014-01-13 21:24:18 +0000
commitd1361b32e7934a5cfaffffa2bad75c25bba08e88 (patch)
tree1a17e8346d776363b5673975fe78576b621f0ac9 /lib/CodeGen/CGCall.cpp
parentf1c6bf3d4bdcc6f5ff0e4218db985b65aca782d3 (diff)
downloadclang-d1361b32e7934a5cfaffffa2bad75c25bba08e88.tar.gz
clang-d1361b32e7934a5cfaffffa2bad75c25bba08e88.tar.bz2
clang-d1361b32e7934a5cfaffffa2bad75c25bba08e88.tar.xz
CodeGen: Introduce CodeGenPGO::setCurrentRegionUnreachable
There are a number of places where we do PGO.setCurrentRegionCount(0) directly after an unconditional branch. Give this operation a name so that it's clearer why we're doing this. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199138 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCall.cpp')
-rw-r--r--lib/CodeGen/CGCall.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGCall.cpp b/lib/CodeGen/CGCall.cpp
index 4bdd032a2b..d312177446 100644
--- a/lib/CodeGen/CGCall.cpp
+++ b/lib/CodeGen/CGCall.cpp
@@ -2184,7 +2184,7 @@ void CodeGenFunction::EmitNoreturnRuntimeCallOrInvoke(llvm::Value *callee,
call->setCallingConv(getRuntimeCC());
Builder.CreateUnreachable();
}
- PGO.setCurrentRegionCount(0);
+ PGO.setCurrentRegionUnreachable();
}
/// Emits a call or invoke instruction to the given nullary runtime